return this;
    }

    /**
     *
     *
     *

     * Required. The user-provided identifier of the private cloud to be created.
     * This identifier must be unique among each `PrivateCloud` within the parent
     * and becomes the final token in the name URI.
     * The identifier must meet the following requirements:
     *
     * * Only contains 1-63 alphanumeric characters and hyphens
     * * Begins with an alphabetical character
     * * Ends with a non-hyphen character
     * * Not formatted as a UUID
     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
     * (section 3.5)
     *

     *
     * string private_cloud_id = 2 [(.google.api.field_behavior) = REQUIRED];
     *
     * @param value The bytes for privateCloudId to set.
     * @return This builder for chaining.
     */
    public Builder setPrivateCloudIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      privateCloudId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private com.google.cloud.vmwareengine.v1.PrivateCloud privateCloud_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmwareengine.v1.PrivateCloud,
            com.google.cloud.vmwareengine.v1.PrivateCloud.Builder,
            com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder>
        privateCloudBuilder_;

    /**
     *
     *
     *

     * Required. The initial description of the new private cloud.
     *

     *
     *
     * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED];
     *
     *
     * @return Whether the privateCloud field is set.
     */
    public boolean hasPrivateCloud() {
      return ((bitField0_ & 0x00000004) != 0);
    }

    /**
     *
     *
     *

     * Required. The initial description of the new private cloud.
     *

     *
     *
     * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED];
     *
     *
     * @return The privateCloud.
     */
    public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud() {
      if (privateCloudBuilder_ == null) {
        return privateCloud_ == null
            ? com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance()
            : privateCloud_;
      } else {
        return privateCloudBuilder_.getMessage();
      }
    }

    /**
     *
     *
     *

     * Required. The initial description of the new private cloud.
     *

     *
     *
     * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public Builder setPrivateCloud(com.google.cloud.vmwareengine.v1.PrivateCloud value) {
      if (privateCloudBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        privateCloud_ = value;
      } else {
        privateCloudBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    /**
     *
     *
     *

     * Required. The initial description of the new private cloud.
     *


b9a34b543bdcbf1575890bd3c352136b">XED_IFORMFL_PMULHW_FIRST

XED_IFORMFL_PMULHW_LAST

XED_IFORMFL_PMULLD_FIRST

XED_IFORMFL_PMULLD_LAST

XED_IFORMFL_PMULLW_FIRST

XED_IFORMFL_PMULLW_LAST

XED_IFORMFL_PMULUDQ_FIRST

<td vali


    char id[8];

        printf("Colibri IMU %d\n", i);
	    colibriGetID(imu, id);
	    printf("\tDevice ID:        %s\n", id);
	    printf("\tSensor config:    %d\n", conf.sensor);
	    printf("\tMagnetic div:     %d\n", (unsigned)conf.magDiv);
	    printf("\tFrequency:        %d\n", conf.freq);
	    printf("\tASCII output:     %d\n", conf.ascii);
	    printf("\tAutoStart:        %d\n", conf.autoStart);
	    printf("\tRAW mode:         %d\n", conf.raw);
	    printf("\tJitter reduction: %d\n", colibriGetJitterStatus(imu[i]));
	    printf("\n\n");
    }

    // Start the devices
    for (int i = 0; i < num_sensors; i++) {
        colibriStart(imu[i]);
    }

    // VRPN stuff
    register_server_handlers();
}

vrpn_Tracker_TrivisioColibri::~vrpn_Tracker_TrivisioColibri()
{
    for (int i = 0; i < num_sensors; i++) {
        colibriStop(imu[i]);
        colibriClose(imu[i]);
    }

    try {
      delete[] imu;
    } catch (...) {
      fprintf(stderr, "vrpn_Tracker_TrivisioColibri::~vrpn_Tracker_TrivisioColibri(): delete failed\n");
      return;
    }
}

void vrpn_Tracker_TrivisioColibri::mainloop()
{
    // Call the generic server mainloop, since we are a server
    server_mainloop();

    // Get latest data
    get_report();
}

void vrpn_Tracker_TrivisioColibri::get_report()
{
    vrpn_gettimeofday(&timestamp, NULL);

    for (int i = 0; i < num_sensors; i++) {
        TrivisioIMUData data;
        colibriGetData(imu[i], &data);

        // The sensor number
        d_sensor = i;

        // No need to fill in position, as we dont get position information

        // The orientation
        d_quat[0] = data.q_x;
        d_quat[1] = data.q_y;
        d_quat[2] = data.q_z;
        d_quat[3] = data.q_w;

        // Send the data
        send_report();
    }
}

void vrpn_Tracker_TrivisioColibri::send_report()
{
    if (d_connection) {
        char msgbuf[1000];
        int len = encode_to(msgbuf);
        if (d_connection->pack_message(len, timestamp, position_m_id, d_sender_id, msgbuf,
                                       vrpn_CONNECTION_LOW_LATENCY)) {
			fprintf(stderr, "Tracker: cannot write message: tossing\n");
		}
    }
}

#endif


se
  },

  _clickViewUser(id) {
    return this.clickView(`#!/View/User/${id}`)
  },

  // 清理操作按钮
  _cleanViewActionButton() {
    $setTimeout(
      () => {
        $cleanMenu('.view-action .J_mores')
        $cleanMenu('.view-action .J_add-related')
        $cleanMenu('.view-action .J_transform')
        $('.view-action .col-lg-6').each(function () {
          if ($(this).children().length === 0) $(this).remove()
        })
        if ($('.view-action').children().length === 0) $('.view-action').addClass('mt-0').empty()
        // v3.6
        $('.view-action.invisible2').removeClass('invisible2')
      },
      20,
      '_cleanViewActionButton'
    )
  },

  // 隐藏
  hide(reload) {
    if (parent && parent !== window) {
      parent && parent.RbViewModal && parent.RbViewModal.holder(this.__id, 'HIDE')
      if (reload === true) {
        if (parent.RbListPage) parent.RbListPage.reload()
        else setTimeout(() => parent.location.reload(), 200)
      }
      // v3.4
      if (parent.location.href.includes('/app/entity/view')) parent.window.close()
    } else {
      window.close() // Maybe unclose
    }
  },

  // 重新加載
  reload() {
    parent && parent.RbViewModal && parent.RbViewModal.holder(this.__id, 'LOADING')
    setTimeout(() => location.reload(), 20)
  },

  // 记录只读
  setReadonly() {
    $(this._RbViewForm._viewForm).addClass('readonly')
    $('.J_edit, .J_delete, .J_add-detail, .J_add-detail-menu').remove()
    this._cleanViewActionButton()
  },
}

// init
$(document).ready(() => {
  // 回退按钮
  if ($urlp('back') === 'auto' && parent && parent.RbViewModal) {
    $('.J_back')
      .removeClass('hide')
      .on('click', () => history.back())
  }
  // for Dock
  if (parent && parent.location.href.includes('/app/entity/view')) {
    $('.view-header').remove()
  }
  // for WxWork
  const ua = navigator.userAgent || ''
  if (ua.includes('wxwork') && ua.includes('MicroMessenger') && $.browser.desktop) {
    $('.J_home').removeClass('hide')
  }

  // iframe 点击穿透
  if (parent) {
    $(document).on('click', () => parent.$(parent.document).trigger('_clickEventHandler'))
    window._clickEventHandler = () => $(document).trigger('click')
  }

  if (wpc.entity) {
    RbViewPage.init(wpc.recordId, wpc.entity, wpc.privileges)
    if (wpc.viewTabs) RbViewPage.initVTabs(wpc.viewTabs)
    if (wpc.viewAdds) RbViewPage.initVAdds(wpc.viewAdds)
  }
})
/*!
Copyright (c) REBUILD <https://getrebuild.com/> and/or its owners. All rights reserved.

rebuild is dual-licensed under commercial and open source licenses (GPLv3).
See LICENSE and COMMERCIAL in the project root for license information.
*/
/* global RelatedList, FeedsList */

const wpc = window.__PageConfig || {}

// const FeedsList = window.FeedsList || React.Component

// ~ 跟进列表
// eslint-disable-next-line no-unused-vars
class LightFeedsList extends RelatedList {
  constructor(props) {
    super(props)

    // 复写组件
    this.__FeedsList = new FeedsList()
    this.__


 "Нест кардани сутун",
"Cols": "Сутунҳо",
"Rows": "Сатрҳо",
"Width": "Паҳмӣ",
"Height": "Баландӣ",
"Cell spacing": "Фосилаи беруна",
"Cell padding": "Фосилаи даруна",
"Row clipboard actions": "",
"Column clipboard actions": "",
"Table styles": "",
"Cell styles": "",
"Column header": "",
"Row header": "",
"Table caption": "",
"Caption": "Сарлавҳа",
"Show caption": "Намоиши сарлавҳа",
"Left": "Аз тарафи чап",
"Center": "Аз марказ",
"Right": "Аз тарафи рост",
"Cell type": "Намуди майдонча",
"Scope": "",
"Alignment": "Мутобиқкунӣ",
"Horizontal align": "",
"Vertical align": "",
"Top": "Аз боло",
"Middle": "Аз байн",
"Bottom": "Аз поён",
"Header cell": "Сарлавҳа",
"Row group": "Гурӯҳи сатрҳо",
"Column group": "Гурӯҳи сутунҳо",
"Row type": "Намуди сатр",
"Header": "Қисми болоӣ",
"Body": "Қисми аслӣ",
"Footer": "Қисми поёнӣ",
"Border color": "Ранги чорчӯба",
"Solid": "",
"Dotted": "",
"Dashed": "",
"Double": "",
"Groove": "",
"Ridge": "",
"Inset": "",
"Outset": "",
"Hidden": "",
"Insert template...": "Шаблон гузоред ...",
"Templates": "Намунаҳо",
"Template": "Намуна",
"Insert Template": "",
"Text color": "Ранги матн",
"Background color": "Ранги пушти матн",
"Custom...": "Хусусӣ...",
"Custom color": "Ранги хусусӣ",
"No color": "Бе ранг",
"Remove color": "Рангро нест кардан",
"Show blocks": "Нишон додани блокҳо",
"Show invisible characters": "Нишон додани аломатҳои пинҳонӣ",
"Word count": "Шумораи калимаҳо",
"Count": "Шумора",
"Document": "Ҳуҷҷат",
"Selection": "Интихобҳо",
"Words": "Калимаҳо",
"Words: {0}": "Климаҳо: {0}",
"{0} words": "{0} калимаҳо",
"File": "Файл",
"Edit": "Тағйир додан",
"Insert": "Сабт кардан",
"View": "Намуд",
"Format": "Формат",
"Table": "Ҷадвал",
"Tools": "Асбобҳо",
"Powered by {0}": "Нерӯмандшуда аз ҷониби {0}",
"Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "Майдони матнӣ. Тугмаҳои ALT-F9-ро пахш кунед, агар хоҳед менюро фарёд кардан, ALT-F10 бастаи асбобҳо, ALT-0 барои фарё


using System;
using System.Threading;
using System.Threading.Tasks;

namespace DevExpress.Logify.Core.Internal {
    public class BackgroundThreadExceptionReportSender : BackgroundExceptionReportSender {
        public BackgroundThreadExceptionReportSender(IExceptionReportSender innerSender)
            : base(innerSender) {
        }
        protected override bool SendExceptionReportInBackground(IExceptionReportSender innerSender, LogifyClientExceptionReport report) {
            BackgroundSendModelAccessor.FixWebRequestDeadlock();
            Thread thread = new Thread(() => {
                if (innerSender != null)
                    innerSender.SendExceptionReport(report);

            });
            //thread.Priority = ThreadPriority.Highest;
            thread.Start();
            return true;
            //Thread.Sleep(3000);
        }
#if ALLOW_ASYNC
        protected override Task<bool> SendExceptionReportInBackgroundAsync(IExceptionReportSender innerSender, LogifyClientExceptionReport report) {
            BackgroundSendModelAccessor.FixWebRequestDeadlock();
            Thread thread = new Thread(() => {
                if (innerSender != null)
                    innerSender.SendExceptionReport(report);

            });
            //thread.Priority = ThreadPriority.Highest;


theme-blue #logo.navbar-brand > img.normal-logo.logo-white{display:block;}
.theme-blue #logo.navbar-brand > img.normal-logo.logo-black{display:none;}
.theme-blue .navbar > .container .navbar-brand{background-color:#7FC8BA;}}
.theme-red #header-navbar{background-color:#f4786e;box-shadow: 0px 1px 3px 0 rgba(0,0,0,0.1);}
.theme-red .content-tabs{border-bottom:solid 2px #2c3e50;border-top:none;height:41px;}
.theme-red .page-tabs a.active{background:#272d33;color:#a7b1c2;}
.theme-red .ckbox input[type="checkbox"]:checked + label:before{border-color: #f4786e;background-color: #f4786e;}
.theme-red .rdio input[type="radio"]:checked + label:before{border-color: #f4786e;}
.theme-red .rdio input[type="radio"]:checked + label::after{background-color: #f4786e;}
.theme-red .ui-jqgrid .ckbox input[type="checkbox"]:checked + label:before{border-color: #f4786e;background-color: #f4786e;}
.theme-red .navbar > .container .navbar-brand{background-color:#f4786e;}
.theme-red #nav-col,.theme-red #page-wrapper{background-color:#272d33;}
.theme-red #sidebar-nav .nav > .open > .submenu > li > .submenu,.theme-red #sidebar-nav .nav > .active > .submenu > li > .submenu,.theme-red #sidebar-nav .nav li .submenu > li.open a,.theme-red #nav-col-submenu .submenu > li > .submenu,.theme-red #nav-col-submenu li .submenu > li.open > a{background-color:#121518;}
.theme-red #sidebar-nav .nav > .open > .submenu > .open > a,.theme-red #sidebar-nav .nav > .active > .submenu > .open > a,.theme-red #sidebar-nav .nav > .active > .submenu > .active > a,.theme-red #nav-col-submenu > .submenu > .open > a,.theme-red #nav-col-submenu > .submenu > .active > a{border-bottom-color:transparent;box-shadow:0 -1px 0 transparent inset;}
.theme-red #sidebar-nav .nav > .open > .submenu > li > .submenu > li a:hover,.theme-red #sidebar-nav .nav > .active > .submenu > li > .submenu > li a:hover,.theme-red #sidebar-nav .nav > .active > .submenu > li > .submenu > li a.active,.theme-red .nav-small #nav-col-submenu .submenu > li > .submenu > li a:hover,.theme-red .nav-small #nav-col-submenu .submenu > li > .submenu > li a.active{color:#f4786e;}
.theme-red .nav-pills > li.active > a,.theme-red .nav-pills > li.active > a:hover,.theme-red .nav-pills > li.active > a:focus,.theme-red #sidebar-nav .nav-pills > li.active > a,.theme-red #sidebar-nav .nav-pills > li.active > a:hover,.theme-red #sidebar-nav .nav-pills > li.active > a:focus,.theme-red .nav-pills > li.open > a,.theme-red .nav-pills > li.open > a:hover,.theme-red .nav-pills > li.open > a:focus,.theme-red #sidebar-nav .nav-pills > li.open > a,.theme-red #sidebar-nav .nav-pills > li.open > a:hover,.theme-red #sidebar-nav .nav-pills > li.open > a:focus,.theme-red .nav-small #nav-col #sidebar-nav


19_8: u16 = 1830;
    pub const PEQ_19_9: u16 = 1835;
    pub const PEQ_19_10: u16 = 1840;
    pub const BPF_19_1: u16 = 1845;
    pub const BPF_19_5: u16 = 1865;
    pub const D_GAIN_20_0_STATUS: u16 = 1885;
    pub const COMP_20_0_STATUS: u16 = 1886;
    pub const D_GAIN_20_0: u16 = 1887;
    pub const COMP_20_0_THRESHOLD: u16 = 1888;
    pub const COMP_20_0_GAIN: u16 = 1889;
    pub const COMP_20_0_RATIO: u16 = 1890;
    pub const COMP_20_0_KNEE: u16 = 1891;
    pub const COMP_20_0_ATIME: u16 = 1892;
    pub const COMP_20_0_RTIME: u16 = 1893;
    pub const DELAY_20_0: u16 = 1894;
    pub const METER_20_0: u16 = 1895;
    pub const METER_20_1: u16 = 1896;
    pub const POLARITY_OUT_20_0: u16 = 1897;
    pub const PEQ_20_1: u16 = 1898;
    pub const PEQ_20_2: u16 = 1903;
    pub const PEQ_20_3: u16 = 1908;
    pub const PEQ_20_4: u16 = 1913;
    pub const PEQ_20_5: u16 = 1918;
    pub const PEQ_20_6: u16 = 1923;
    pub const PEQ_20_7: u16 = 1928;
    pub const PEQ_20_8: u16 = 1933;
    pub const PEQ_20_9: u16 = 1938;
    pub const PEQ_20_10: u16 = 1943;
    pub const BPF_20_1: u16 = 1948;
    pub const BPF_20_5: u16 = 1968;
    #[cfg(feature = "symbols")]
    pub const SYMBOLS: &[(&str, u16)] = &[
        ("MIXER_0_0_STATUS", MIXER_0_0_STATUS),
        ("MIXER_0_1_STATUS", MIXER_0_1_STATUS),
        ("MIXER_0_2_STATUS", MIXER_0_2_STATUS),
        ("MIXER_0_3_STATUS", MIXER_0_3_STATUS),
        ("MIXER_0_4_STATUS", MIXER_0_4_STATUS),
        ("MIXER_0_5_STATUS", MIXER_0_5_STATUS),
        ("MIXER_0_6_STATUS", MIXER_0_6_STATUS),
        ("MIXER_0_7_STATUS", MIXER_0_7_STATUS),
        ("MIXER_0_8_STATUS", MIXER_0_8_STATUS),
        ("MIXER_0_9_STATUS", MIXER_0_9_STATUS),
        ("MIXER_0_10_STATUS", MIXER_0_10_STATUS),
        ("MIXER_0_11_STATUS", MIXER_0_11_STATUS),
        ("MIXER_1_0_STATUS", MIXER_1_0_STATUS),
        ("MIXER_1_1_STATUS", MIXER_1_1_STATUS),
        ("MIXER_1_2_STATUS", MIXER_1_2_STATUS),
        ("MIXER_1_3_STATUS", MIXER_1_3_STATUS),
        ("MIXER_1_4_STATUS", MIXER_1_4_STATUS),
        ("MIXER_1_5_STATUS", MIXER_1_5_STATUS),
        ("MIXER_1_6_STATUS", MIXER_1_6_STATUS),
        ("MIXER_1_7_STATUS", MIXER_1_7_STATUS),
        ("MIXER_1_8_STATUS", MIXER_1_8


ots, int numMeat, int numPeppers) {
    this.numPotatoes = numPotatoes;
    this.numCarrots = numCarrots;
    this.numMeat = numMeat;
    this.numPeppers = numPeppers;
  }
  public int getNumPotatoes() {
    return numPotatoes;
  }
  public int getNumCarrots() {
    return numCarrots;
  }
  public int getNumMeat() {
    return numMeat;
  }
  public int getNumPeppers() {
    return numPeppers;
  }
}
public class ImmutableStew {
  private static final Logger LOGGER = LoggerFactory.getLogger(ImmutableStew.class);
  private final StewData data;
  public ImmutableStew(int numPotatoes, int numCarrots, int numMeat, int numPeppers) {
    data = new StewData(numPotatoes, numCarrots, numMeat, numPeppers);
  }
  public void mix() {
    LOGGER
        .info("Mixing the immutable stew we find: {} potatoes, {} carrots, {} meat and {} peppers",
            data.getNumPotatoes(), data.getNumCarrots(), data.getNumMeat(), data.getNumPeppers());
  }
}
```

让我们尝试创建每个类的实例并调用其方法：

```java
var stew = new Stew(1, 2, 3, 4);
stew.mix();   // Mixing the stew we find: 1 potatoes, 2 carrots, 3 meat and 4 peppers
stew.taste(); // Tasting the stew
stew.mix();   // Mixing the stew we find: 0 potatoes, 1 carrots, 2 meat and 3 peppers
var immutableStew = new ImmutableStew(2, 4, 3, 6);
immutableStew.mix();  // Mixing the immutable stew we find: 2 potatoes, 4 carrots, 3 meat and 6 peppers
```

## 类图

![alt text](./etc/private-class-data.png "Private Class Data")

## 适用性

在以下情况下使用私有类数据模式

* 您要阻止对类数据成员的写访问。
---
title: Business Delegate
shortTitle: Business Delegate
category: Structural
language: zh
tag:
 - Decoupling
---

## 意图

业务委托模式在表示层和业务层之间添加了一个抽象层。 通过使用该模式，我们获得了各层之间的松散耦合，并封装了有关如何定位，连接到组成应用程序的业务对象以及与之交互的逻辑。

## 解释

真实世界例子

> 手机应用程序承诺将现有的任何电影流式传输到您的手机。它捕获用户的搜索字符串，并将其传递给业务委托层。业务委托层选择最合适的视频流服务，然后从那里播放视频。

通俗的说

> 业务委托模式在表示层和业务层之间添加了一个抽象层。

维基百科说

> 业务委托是一种Java EE设计模式。 该模式旨在减少业务服务与连接的表示层之间的耦合，并隐藏服务的实现细节（包括EJB体系结构的查找和可访问性）。 业务代表充当适配器，以从表示层调用


This file was auto-generated by ensureUiComponents() in @jupyterlab/buildutils */

/**
 * (DEPRECATED) Support for consuming icons as CSS background images
 */

/* Icons urls */

:root {
  --jp-icon-add: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTE5IDEzaC02djZoLTJ2LTZINXYtMmg2VjVoMnY2aDZ2MnoiLz4KICA8L2c+Cjwvc3ZnPgo=);
  --jp-icon-bug: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTIwIDhoLTIuODFjLS40NS0uNzgtMS4wNy0xLjQ1LTEuODItMS45NkwxNyA0LjQxIDE1LjU5IDNsLTIuMTcgMi4xN0MxMi45NiA1LjA2IDEyLjQ5IDUgMTIgNWMtLjQ5IDAtLjk2LjA2LTEuNDEuMTdMOC40MSAzIDcgNC40MWwxLjYyIDEuNjNDNy44OCA2LjU1IDcuMjYgNy4yMiA2LjgxIDhINHYyaDIuMDljLS4wNS4zMy0uMDkuNjYtLjA5IDF2MUg0djJoMnYxYzAgLjM0LjA0LjY3LjA5IDFINHYyaDIuODFjMS4wNCAxLjc5IDIuOTcgMyA1LjE5IDNzNC4xNS0xLjIxIDUuMTktM0gyMHYtMmgtMi4wOWMuMDUtLjMzLjA5LS42Ni4wOS0xdi0xaDJ2LTJoLTJ2LTFjMC0uMzQtLjA0LS42Ny0uMDktMUgyMFY4em0tNiA4aC00di0yaDR2MnptMC00aC00di0yaDR2MnoiLz4KICA8L2c+Cjwvc3ZnPgo=);
  --jp-icon-build: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTE0LjkgMTcuNDVDMTYuMjUgMTcuNDUgMTcuMzUgMTYuMzUgMTcuMzUgMTVDMTcuMzUgMTMuNjUgMTYuMjUgMTIuNTUgMTQuOSAxMi41NUMxMy41NCAxMi41NSAxMi40NSAxMy42NSAxMi40NSAxNUMxMi40NSAxNi4zNSAxMy41NCAxNy40NSAxNC45IDE3LjQ1Wk0yMC4xIDE1LjY4TDIxLjU4IDE2Ljg0QzIxLjcxIDE2Ljk1IDIxLjc1IDE3LjEzIDIxLjY2IDE3LjI5TDIwLjI2IDE5LjcxQzIwLjE3IDE5Ljg2IDIwIDE5LjkyIDE5LjgzIDE5Ljg2TDE4LjA5IDE5LjE2QzE3LjczIDE5LjQ0IDE3LjMzIDE5LjY3IDE2LjkxIDE5Ljg1TDE2LjY0IDIxLjdDMTYuNjIgMjEuODcgMTYuNDcgMjIgMTYuMyAyMkgxMy41QzEzLjMyIDIyIDEzLjE4IDIxLjg3IDEzLjE1IDIxL


!DX12Utils::MakeRootSig(device, ranges, 22, samplers, 1, &ContextInternal::computeShader_GatherDOF_FloodFillFar_rootSig, (c_debugNames ? L"GatherDOF_FloodFillFar" : nullptr), Context::LogFn))
                return false;

            ShaderCompilationInfo shaderCompilationInfo;
            shaderCompilationInfo.fileName = std::filesystem::path(Context::s_techniqueLocation) / "shaders" / "dof/FloodFillFarCS.hlsl";
            shaderCompilationInfo.entryPoint = "csmain";
            shaderCompilationInfo.shaderModel = "cs_6_1";
            shaderCompilationInfo.debugName = (c_debugNames ? "GatherDOF_FloodFillFar" : "");
            if (c_debugShaders) shaderCompilationInfo.flags |= ShaderCompilationFlags::Debug;
            shaderCompilationInfo.defines.emplace_back("COC_TILEMAP","0");
            shaderCompilationInfo.defines.emplace_back("__GigiDispatchMultiply","uint3(1,1,1)");
            shaderCompilationInfo.defines.emplace_back("__GigiDispatchDivide","uint3(1,1,1)");
            shaderCompilationInfo.defines.emplace_back("__GigiDispatchPreAdd","uint3(0,0,0)");
            shaderCompilationInfo.defines.emplace_back("__GigiDispatchPostAdd","uint3(0,0,0)");

            if(!DX12Utils::MakeComputePSO_DXC(device, shaderCompilationInfo,
               ContextInternal::computeShader_GatherDOF_FloodFillFar_rootSig, &ContextInternal::computeShader_GatherDOF_FloodFillFar_pso, Context::LogFn))
                return false;
        }

        // Compute Shader: GatherDOF_DownscaleTileMap_1_4
        {
            D3D12_STATIC_SAMPLER_DESC* samplers = nullptr;

            D3D12_DESCRIPTOR_RANGE ranges[2];

            // Source
            ranges[0].RangeType = D3D12_DESCRIPTOR_RANGE_TYPE_SRV;
            ranges[0].NumDescriptors = 1;
            ranges[0].BaseShaderRegister = 0;
            ranges[0].RegisterSpace = 0;
            ranges[0].OffsetInDescriptorsFromTableStart = 0;

            // Dest
            ranges[1].RangeType = D3D12_DESCRIPTOR_RANGE_TYPE_UAV;
            ranges[1].NumDescriptors = 1;
            ranges[1].BaseShaderRegister = 0;
            ranges[1].RegisterSpace = 0;
            ranges[1].OffsetInDescriptorsFromTableStart = 1;

            if(!DX12Utils::MakeRootSig(device, ranges, 2, samplers, 0, &ContextInternal::computeShader_GatherDOF_DownscaleTileMap_1_4_rootSig, (c_debugNames ? L"GatherDOF_DownscaleTileMap_1_4" : nullptr), Context::LogFn))
                return false;

            ShaderCompilationInfo shaderCompilationInfo;
            shaderCompilationInfo.fileName = std::filesystem::path(Context::s_techniqueLocation) / "shaders" / "dof/DownscaleTileMap_1_4.hlsl";
            shaderCompilationInfo.entryPoint = "csmain";
            shaderCompilationInfo.shaderModel = "cs_6_1";
            shaderCompilationInfo.debugName = (c_debugNames ? "GatherDOF_DownscaleTileMap_1_4" : "");
            if (c_debugShaders) shaderCompilationInfo.flags |= ShaderCompilationFlags::Debug;
            shaderCompilationInfo.defines.emplace_back("__GigiDispatchMultiply","uint3(1,1,1)");
            shaderCompilationInfo.defines.emplace_back("__GigiDispatchDivide","uint3(1,1,1)");
            shaderCompilationInfo.defines.emplace_back("__GigiDispatch


quiresApi(33)
@Language("AGSL")
fun createTestShader() = """
uniform float2 iResolution;//px
uniform float iTime;//s

vec4 main(vec2 fragCoords) {
    vec2 uv = fragCoords / iResolution;
    return vec4((sin(iTime * 2.) + 1)* .31,uv.xy,1.0);
}
""".trimIndent().let { RuntimeShader(it) }

@Composable
private fun produceDrawLoopCounter(speed: Float = 1f): State<Float> {
    return produceState(0f) {
        while (true) {
            withInfiniteAnimationFrameMillis {
                value = it / 1000f * speed
            }
        }
    }
}

@RequiresApi(33)
@WearPreviewLargeRound
@Composable
private fun ShaderExperimentsPreview() = OClockRootCanvas {
    ShaderExperiments()
}

@RequiresApi(33)
@WearPreviewLargeRound
@Composable
private fun ShaderExperiments2Preview() = OClockRootCanvas {
    ShaderExperiments(remember { createTestShader() })
}

@RequiresApi(33)
@WearPreviewLargeRound
@Composable
private fun ShaderArtCodingIntroPreview() = OClockRootCanvas {
    ShaderExperiments(remember { createShaderArtCodingIntroShader() })
}

@RequiresApi(33)
@WearPreviewLargeRound
@Composable
private fun ShaderMatrixRainPreview() = OClockRootCanvas {
    ShaderExperiments(remember { createMatrixRainShader() })
}
package de.fayard.refreshVersions

import de.fayard.refreshVersions.core.DependencySelection
import de.fayard.refreshVersions.core.FeatureFlag
import groovy.lang.Closure
import org.gradle.api.Action
import org.gradle.api.Incubating
import java.io.File

open class RefreshVersionsExtension {

    var versionsPropertiesFile: File? = null
    var extraArtifactVersionKeyRules: List<String> = emptyList()
    internal var isBuildSrcLibsEnabled = false
    internal var versionRejectionFilter: (DependencySelection.() -> Boolean)? = null

    @Incubating
    fun enableBuildSrcLibs() {
        isBuildSrcLibsEnabled = true
    }

    fun extraArtifactVersionKeyRules(file: File) {
        extraArtifactVersionKeyRules = extraArtifactVersionKeyRules + file.readText()
    }

    fun extraArtifactVersionKeyRules(rawRules: String) {
        extraArtifactVersionKeyRules = extraArtifactVersionKeyRules + rawRules
    }

    fun featureFlags(extension: Action<FeatureFlagExtension>) {
        extension.execute(FeatureFlagExtension())
    }

    fun rejectVersionIf(filter: Closure<Boolean>) {
        versionRejectionFilter = {
            filter.delegate = this
            filter.call()
        }
    }

    fun rejectVersionIf(filter: DependencySelection.() -> Boolean) {
        versionRejectionFilter = filter
    }
}

open class FeatureFlagExtension {
    fun enable(flag: FeatureFlag) {
        FeatureFlag.userSettings[flag] = true
    }
    fun disable(flag: FeatureFlag) {
        FeatureFlag.userSettings[flag] = false
    }
}
package de.fayard.refreshVersions.internal

import de.fayard.refreshVersions.core.ModuleId
import de.fayard.refreshVersions.core.extensions.gradle.moduleId
import de.fayard.refreshVersions.core.internal.*
import de.fayard.refreshVersions.core.internal.cli.AnsiColor
import de.fayard.refreshVersions.core.internal.cli.CliGenericUi
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.artifacts.Dependency
import org.gradle.api.artifacts.ModuleIdentifier

internal fun runConfigurationDependenciesMigration(
    project: Project,
    versionsMap: Map<String, String>,
    configuration: Configuration
) {
    configuration.dependencies.forEach { dependency ->
        if (dependency !is Dependency) return@forEach
        project.attemptDependencyMigration(versionsMap, dependency)
    }
}

private val artifactNameToConstantMapping: List<DependencyMapping> by lazy {
    getArt


: "Corona Borealis",
      IAU: "CrB",
      NASA: "CorB",
      Star: "Alphecca",
      name: "iau_constellation_corona_borealis",
      position: "N",
      area: 178.71,
      visibility: "90° N - 50° S",
      magnitudo: 2.21),
  Constellation(
      ConstellationName: "Corvus",
      IAU: "Crv",
      NASA: "Corv",
      Star: "Gienah",
      name: "iau_constellation_corvus",
      position: "S",
      area: 183.801,
      visibility: "65° N - 90° S",
      magnitudo: 2.59),
  Constellation(
      ConstellationName: "Crater",
      IAU: "Crt",
      NASA: "Crat",
      Star: "δ Crateris",
      name: "iau_constellation_crater",
      position: "S",
      area: 282.398,
      visibility: "65° N - 90° S",
      magnitudo: 3.56),
  Constellation(
      ConstellationName: "Crux",
      IAU: "Cru",
      NASA: "Cruc",
      Star: "Acrux",
      name: "iau_constellation_crux",
      position: "S",
      area: 68.447,
      visibility: "25° N - 90° S",
      magnitudo: 0.77),
  Constellation(
      ConstellationName: "Cygnus",
      IAU: "Cyg",
      NASA: "Cygn",
      Star: "Deneb",
      name: "iau_constellation_cygnus",
      position: "N",
      area: 803.983,
      visibility: "90° N - 29° S",
      magnitudo: 1.25),
  Constellation(
      ConstellationName: "Delphinus",
      IAU: "Del",
      NASA: "Dlph",
      Star: "Rotanev",
      name: "iau_constellation_delphinus",
      position: "N",
      area: 188.549,
      visibility: "90° N - 70° S",
      magnitudo: 3.63),
  Constellation(
      ConstellationName: "Dorado",
      IAU: "Dor",
      NASA: "Dora",
      Star: "α Doradus",
      name: "iau_constellation_dorado",
      position: "S",
      area: 179.173,
      visibility: "20° N - 90° S",
      magnitudo: 3.3),
  Constellation(
      ConstellationName: "Draco",
      IAU: "Dra",
      NASA: "Drac",
      Star: "Eltanin",
      name: "iau_constellation_draco",
      position: "N",
      area: 1082.95,
      visibility: "90° N - 15° S",
      magnitudo: 2.24),
  Constellation(
      ConstellationName: "Equuleus",
      IAU: "Equ",
      NASA: "Equl",
      Star: "Kitalpha",
      name: "iau_constellation_equuleus",
      position: "N",
      area: 71.641,
      visibility: "90° N - 77° S",
      magnitudo: 3.92),
  Constellation(
      ConstellationName: "Eridanus",
      IAU: "Eri",
      NASA: "Erid",
      Star: "Achernar",
      name: "iau_constellation_eridanus",
      position: "S n",
      area: 1137.92,
      visibility: "32° N - 89° S",
      magnitudo: 0.5),
  Constellation(
      ConstellationName: "Fornax",
      IAU: "For",
      NASA: "Forn",
      Star: "Dalim",
      name: "iau_co


, r1, r0			@ calculate total size
	cmp	r3, #MAX_AREA_SIZE
	bhs	__flush_whole_cache

1:	tst	r2, #VM_EXEC
	mcrne	p15, 0, r0, c7, c5, 1		@ invalidate L1 I line
	mcr	p15, 0, r0, c7, c14, 1		@ clean/invalidate L1 D line
	add	r0, r0, #CACHELINESIZE
	cmp	r0, r1
	blo	1b
	tst	r2, #VM_EXEC
	mcrne	p15, 0, ip, c7, c5, 6		@ invalidate BTB
	mcrne	p15, 0, ip, c7, c10, 4		@ data write barrier
	mcrne	p15, 0, ip, c7, c5, 4		@ prefetch flush
	ret	lr

/*
 *	coherent_kern_range(start, end)
 *
 *	Ensure coherency between the I cache and the D cache in the
 *	region described by start.  If you have non-snooping
 *	Harvard caches, you need to implement this function.
 *
 *	- start  - virtual start address
 *	- end	 - virtual end address
 *
 *	Note: single I-cache line invalidation isn't used here since
 *	it also trashes the mini I-cache used by JTAG debuggers.
 */
ENTRY(xsc3_coherent_kern_range)
/* FALLTHROUGH */
ENTRY(xsc3_coherent_user_range)
	bic	r0, r0, #CACHELINESIZE - 1
1:	mcr	p15, 0, r0, c7, c10, 1		@ clean L1 D line
	add	r0, r0, #CACHELINESIZE
	cmp	r0, r1
	blo	1b
	mov	r0, #0
	mcr	p15, 0, r0, c7, c5, 0		@ invalidate L1 I cache and BTB
	mcr	p15, 0, r0, c7, c10, 4		@ data write barrier
	mcr	p15, 0, r0, c7, c5, 4		@ prefetch flush
	ret	lr

/*
 *	flush_kern_dcache_area(void *addr, size_t size)
 *
 *	Ensure no D cache aliasing occurs, either with itself or
 *	the I cache.
 *
 *	- addr	- kernel address
 *	- size	- region size
 */
ENTRY(xsc3_flush_kern_dcache_area)
	add	r1, r0, r1
1:	mcr	p15, 0, r0, c7, c14, 1		@ clean/invalidate L1 D line
	add	r0, r0, #CACHELINESIZE
	cmp	r0, r1
	blo	1b
	mov	r0, #0
	mcr	p15, 0, r0, c7, c5, 0		@ invalidate L1 I cache and BTB
	mcr	p15, 0, r0, c7, c10, 4		@ data write barrier
	mcr	p15, 0, r0, c7, c5, 4		@ prefetch flush
	ret	lr

/*
 *	dma_inv_range(start, end)
 *
 *	Invalidate (discard) the specified virtual address range.
 *	May not write back any entries.  If 'start' or 'end'
 *	are not cache line aligned, those lines must be written
 *	back.
 *
 *	- start  - virtual start address
 *	- end	 - virtual end address
 */
xsc3_dma_inv_range:
	tst	r0, #CACHELINESIZE - 1
	bic	r0, r0, #CACHELINESIZE - 1
	mcrne	p15, 0, r0, c7, c1


536e63219a',1,'glm']]],
  ['highp_5fuvec2_915',['highp_uvec2',['../a00913.html#gaff3354c7f0e39561f3594d496f2d12b1',1,'glm']]],
  ['highp_5fuvec3_916',['highp_uvec3',['../a00913.html#gab4c04fa2a3006e977f220f4f58eed009',1,'glm']]],
  ['highp_5fuvec4_917',['highp_uvec4',['../a00913.html#ga8d1fff5168a6ef78c138f99a56f0f588',1,'glm']]],
  ['highp_5fvec1_918',['highp_vec1',['../a00872.html#ga9e8ed21862a897c156c0b2abca70b1e9',1,'glm']]],
  ['highp_5fvec2_919',['highp_vec2',['../a00891.html#gaa92c1954d71b1e7914874bd787b43d1c',1,'glm']]],
  ['highp_5fvec3_920',['highp_vec3',['../a00891.html#gaca61dfaccbf2f58f2d8063a4e76b44a9',1,'glm']]],
  ['highp_5fvec4_921',['highp_vec4',['../a00891.html#gad281decae52948b82feb3a9db8f63a7b',1,'glm']]],
  ['hsvcolor_922',['hsvColor',['../a00921.html#ga789802bec2d4fe0f9741c731b4a8a7d8',1,'glm']]]
];
const voiceStates = {
  lobby: {
    dead: { deaf: false, mute: false },
    alive: { deaf: false, mute: false }
  },
  discussion: {
    dead: { deaf: false, mute: true },
    alive: { deaf: false, mute: false }
  },
  tasks: {
    dead: { deaf: false, mute: false },
    alive: { deaf: true, mute: true }
  }
}

const voiceStatesNoDeafen = {
  lobby: {
    dead: { mute: false },
    alive: { mute: false }
  },
  discussion: {
    dead: { mute: true },
    alive: { mute: false }
  },
  tasks: {
    dead: { mute: true },
    alive: { mute: true }
  }
}

module.exports = class PlayerVoiceStates {
  constructor (selfMember, voicechannel, player, game) {
    this.selfMember = selfMember
    this.voiceChannel = voicechannel
    this.player = player
    this.game = game
  }

  getVoiceState(gameStage) {
    const useDeafen = this.voiceChannel.permissionsFor(this.selfMember).has('DEAFEN_MEMBERS')
    if (!this.game.players.includes(this.player)) {
      return useDeafen ? { mute: false, deaf: false } : { mute: false }
    }
    const stateSet = useDeafen ? voiceStates : voiceStatesNoDeafen
    return stateSet[gameStage][this.player.alive ? 'alive' : 'dead']
  }
}const Command = require('../Command')
const Utils = require('../Utils')

const ColorRequirement = require('../ColorRequirement')
const GameExistenceRequirement = require('../GameExistenceRequirement')
const { MessageEmbed } = require('discord.js')

module.exports = class Sync extends Command {
  constructor () {
    super({
      name: 'sync',
      aliases: [ 's' ],
      description: 'Lets you control the bot through your phone',
      new: true,

      gameExistenceRequirement: GameExistenceRequirement.GAME,
      voiceChannelOnly: true,
      hostOnly: true
    })
  }

  run ({ message, game }) {
    message.channel.send(
      new MessageEmbed()
        .setColor(0x7289DA)
        .setTitle(`${game.syncId}`)
        .setURL(`${process.env.SYNC_BASE_URL}/${game.syncId}`)
        .setDescription([
          `  **1.** Open [**sync.amongcord.xyz**](${process.env.S


menu .mdc-deprecated-list-item__graphic {
  color: rgba(0, 0, 0, 0.87);
}
.mdc-menu .mdc-deprecated-list {
  color: rgba(0, 0, 0, 0.87);
  /* @alternate */
  position: relative;
}
.mdc-menu .mdc-deprecated-list .mdc-elevation-overlay {
  width: 100%;
  height: 100%;
  top: 0;
  /* @noflip */
  left: 0;
}
.mdc-menu .mdc-deprecated-list-divider {
  margin: 8px 0;
}
.mdc-menu .mdc-deprecated-list-item {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.mdc-menu .mdc-deprecated-list-item--disabled {
  cursor: auto;
}
.mdc-menu a.mdc-deprecated-list-item .mdc-deprecated-list-item__text,
.mdc-menu a.mdc-deprecated-list-item .mdc-deprecated-list-item__graphic {
  pointer-events: none;
}

.mdc-menu__selection-group {
  padding: 0;
  fill: currentColor;
}
.mdc-menu__selection-group .mdc-deprecated-list-item {
  /* @noflip */
  padding-left: 56px;
  /* @noflip */
  padding-right: 16px;
}
[dir=rtl] .mdc-menu__selection-group .mdc-deprecated-list-item, .mdc-menu__selection-group .mdc-deprecated-list-item[dir=rtl] {
  /* @noflip */
  padding-left: 16px;
  /* @noflip */
  padding-right: 56px;
}

.mdc-menu__selection-group .mdc-menu__selection-group-icon {
  /* @noflip */
  left: 16px;
  /* @noflip */
  right: initial;
  display: none;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
[dir=rtl] .mdc-menu__selection-group .mdc-menu__selection-group-icon, .mdc-menu__selection-group .mdc-menu__selection-group-icon[dir=rtl] {
  /* @noflip */
  left: initial;
  /* @noflip */
  right: 16px;
}

.mdc-menu-item--selected .mdc-menu__selection-group-icon {
  display: inline;
}

.mdc-menu-surface {
  display: none;
  position: absolute;
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  /* @alternate */
  max-width: var(--mdc-menu-max-width, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  /* @alternate */
  max-height: var(--mdc-menu-max-height, calc(100vh - 32px));
  margin: 0;
  padding: 0;
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transform-origin: top left;
          transform-origin: top left;
  opacity: 0;
  overflow: auto;
  will-change: transform, opacity;
  z-index: 8;
  transition: opacity 0.03s linear, height 250ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 0.12s cubic-bezier(0, 0, 0.2, 1);
  transition: opacity 0.03s linear, transform 0.12s cubic-bezier(0, 0, 0.2, 1), height 250ms cubic-


ig.node_role.as_str() {
        NODE_ROLE_BACKEND => {
            tasks.push(run_task(INIT_SYNC_CHAIN_STATE_TIMER, config, db));
            tasks.push(run_task(INIT_BLOCK_NOTIFY_LISTENER, config, db));
            tasks.push(run_task(INIT_PROCESS_PAYMENTS_TIMER, config, db));
        }
        NODE_ROLE_WORKER => {
            tasks.push(run_task(INIT_WORKER_POOL_LISTENER, config, db));
        }
        NODE_ROLE_COMBINED => {
            tasks.push(run_task(INIT_SYNC_CHAIN_STATE_TIMER, config, db));
            tasks.push(run_task(INIT_BLOCK_NOTIFY_LISTENER, config, db));
            tasks.push(run_task(INIT_PROCESS_PAYMENTS_TIMER, config, db));
            tasks.push(run_task(INIT_WORKER_POOL_LISTENER, config, db));
        }
        _ => {
            panic!("node role not recognized: {}", config.node_role);
        }
    }
    // run all tasks concurrently
    join_all(tasks).await;
}
<filename>pac/atsamc21g/src/adc0/ctrlb.rs
#[doc = "Register `CTRLB` reader"]
pub struct R(crate::R<CTRLB_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<CTRLB_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<CTRLB_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<CTRLB_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `CTRLB` writer"]
pub struct W(crate::W<CTRLB_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<CTRLB_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<CTRLB_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<CTRLB_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Prescaler Configuration\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum PRESCALER_A {
    #[doc = "0: Peripheral clock / 2"]
    DIV2 = 0,
    #[doc = "1: Peripheral clock / 4"]
    DIV4 = 1,
    #[doc = "2: Peripheral clock / 8"]
    DIV8 = 2,
    #[doc = "3: Peripheral clock / 16"]
    DIV16 = 3,
    #[doc = "4: Peripheral clock / 32"]
    DIV32 = 4,
    #[doc = "5: Peripheral clock / 64"]
    DIV64 = 5,
    #[doc = "6: Peripheral clock / 128"]
    DIV128 = 6,
    #[doc = "7: Peripheral clock / 256"]
    DIV256 = 7,
}
impl From<PRESCALER_A> for u8 {
    #[inline(always)]
    fn from(variant: PRESCALER_A) -> Self {
        variant as _
    }
}
#[doc = "Field `PRESCALER` reader - Prescaler Configuration"]
pub struct PRESCALER_R(crate::FieldReader<u8, PRESCALER_A>);
impl PRESCALER_R {
    #[inline(always)]
    pub(crate) fn new(bits: u8) -> Self {
        PRESCALER_R(crate::FieldReader::new(bits))
    }


yindex": 1, "paths": [[[[0.0, -0.5], [0.13260155, -0.5], [0.25978993539242673, -0.44731684579412084], [0.3535533905932738, -0.3535533905932738], [0.44731684579412084, -0.25978993539242673], [0.5, -0.13260155], [0.5, 0.0], [0.5, 0.13260155], [0.44731684579412084, 0.25978993539242673], [0.3535533905932738, 0.3535533905932738], [0.25978993539242673, 0.44731684579412084], [0.13260155, 0.5], [0.0, 0.5], [-0.13260155, 0.5], [-0.25978993539242673, 0.44731684579412084], [-0.3535533905932738, 0.3535533905932738], [-0.44731684579412084, 0.25978993539242673], [-0.5, 0.13260155], [-0.5, 0.0], [-0.5, -0.13260155], [-0.44731684579412084, -0.25978993539242673], [-0.3535533905932738, -0.3535533905932738], [-0.25978993539242673, -0.44731684579412084], [-0.13260155, -0.5], [0.0, -0.5]], ["M", "C", "C", "C", "C", "C", "C", "C", "C", "Z"]]], "pathtransforms": [[15.214515486254616, 0.0, 0.0, 15.214515486254616, 0.0, 0.0], [15.214515486254616, 0.0, 0.0, 15.214515486254616, 0.0, 0.0], [15.214515486254616, 0.0, 0.0, 15.214515486254616, 0.0, 0.0], [15.214515486254616, 0.0, 0.0, 15.214515486254616, 0.0, 0.0], [15.214515486254616, 0.0, 0.0, 15.214515486254616, 0.0, 0.0], [15.214515486254616, 0.0, 0.0, 15.214515486254616, 0.0, 0.0], [15.214515486254616, 0.0, 0.0, 15.214515486254616, 0.0, 0.0], [15.214515486254616, 0.0, 0.0, 15.214515486254616, 0.0, 0.0], [12.42259987499883, 0.0, 0.0, 12.42259987499883, 0.0, 0.0], [12.42259987499883, 0.0, 0.0, 12.42259987499883, 0.0, 0.0], [12.42259987499883, 0.0, 0.0, 12.42259987499883, 0.0, 0.0], [12.42259987499883, 0.0, 0.0, 12.42259987499883, 0.0, 0.0], [12.42259987499883, 0.0, 0.0, 12.42259987499883, 0.0, 0.0], [12.42259987499883, 0.0, 0.0, 12.42259987499883, 0.0, 0.0


  .chip-wp-#{$color-name},
  .chip-wp .icon-wp-#{$color-name} {
    color: $color-contrast;
    background-color: $color-base;
  }

}
@import "../../themes/ionic.globals.wp";

// Windows Label
// --------------------------------------------------

/// @prop - Text color of the label by an input, select, or datetime
$label-wp-text-color:                 #999 !default;

/// @prop - Text color of the stacked/floating label when it is focused
$label-wp-text-color-focused:         color($colors-wp, primary) !default;

// Windows Default Label
// --------------------------------------------------

.label-wp {
  @include margin($item-wp-padding-top, ($item-wp-padding-end / 2), $item-wp-padding-bottom, 0);
}

// Windows Default Label Inside An Input/Select Item
// --------------------------------------------------

.item-input .label-wp,
.item-select .label-wp,
.item-datetime .label-wp {
  color: $label-wp-text-color;
}

// Windows Stacked & Floating Labels
// --------------------------------------------------

.label-wp[stacked] {
  font-size: 1.2rem;
}

.label-wp[floating] {
  @include transform(translate3d(8px, 34px, 0));
  @include transform-origin(start, top);
}

.label-wp[stacked],
.label-wp[floating] {
  @include margin(null, null, 0, 0);
}

// TODO remove all uses of input-has-focus in v4
// TODO remove all uses of input-has-value in v4
.item-input-has-focus .label-wp[stacked],
.input-has-focus .label-wp[stacked],
.item-input-has-focus .label-wp[floating],
.input-has-focus .label-wp[floating] {
  color: $label-wp-text-color-focused;
}

.item-input-has-focus .label-wp[floating],
.input-has-focus .label-wp[floating],
.item-input-has-value .label-wp[floating],
.input-has-value .label-wp[floating] {
  @include transform(translate3d(0, 0, 0), scale(.8));
}

.item-wp.item-label-stacked [item-right], // deprecated
.item-wp.item-label-floating [item-right], // deprecated
.item-wp.item-label-stacked [item-end],
.item-wp.item-label-floating [item-end] {
  @include margin($item-wp-padding-media-top + 4, null, $item-wp-padding-media-top + 4, null);
}

// Generate Windows Label colors
// --------------------------------------------------

@each $color-name, $color-base, $color-contrast in get-colors($colors-wp) {

  .label-wp-#{$color-name},
  .item-input .label-wp-#{$color-name},
  .item-select .label-wp-#{$color-name},
  .item-datetime .label-wp-#{$color-name} {
    color: $color-base;
  }

}
@import "../../themes/ionic.globals";

// Alerts
// --------------------------------------------------

/// @prop - Minimum width of the alert
$alert-min-width:                 250px !default;

/// @prop - Maximum height of the alert
$alert-max-height:                90% !default;

/// @prop - Line height of the alert button
$alert-button-line-height:        20px !default;

/// @prop - Font size of the alert button
$alert-button-font-size:          14px !default;

/// @prop - Color of the alert input placeholder
$alert-input-placeholder-color:   #999 !default;

ion-alert {
  @include position(0,


��机动车超车时，以下正确的做法是什么？ A、可连续超越多辆机动车

B、从同车道前方车辆的右侧超车

C、提前开启左转向灯

D、前方车辆正在超车时，可连续鸣喇叭强行超越

【答案】C

【技巧 1】方向改变，左右转向提前开；仔细观察，不压实线不扰他车。 【技巧 2】解析：方向向左要提前开启左转向灯。

【讲解 1】本题主要考察超车规定。超车时要保持与被超越车辆的安全距离， 观察左侧交通情况，选择合理时机，提前开启左转向灯，从被超越车辆的左侧 超越。因此选择“提前开启左转向灯”。

【讲解 2】相关法规参考：GA/T1773.2-2021《机动车驾驶人安全文明操作规范 第 2 部分：小型汽车驾驶》，9.5 超车和让超车，操作方法：9.5.1.1 超车按 以下步骤操作：a）开启左转向灯，变换使用远近光灯或鸣喇叭，向前车和周 边车辆发出超车信号；b）预判超车过程中与对向来车无会车可能，且周边无 行人、非机动车、障碍物等其他妨碍超车的情况；c）观察左后视镜并回头观 察后视镜盲区，确认安全，向左改变行驶路线，在限速范围内加速超越前车， 车速宜大于被超车辆 15km/h 以上；d）在无道路中心线的道路上，待前车降低 速度、靠右让路后超车；e）超越前车后，开启右转向灯，从右后视镜中看到 被超车辆的车身全貌后，确认安全，向右改变行驶路线，驶回原车道。

1219、机动车在高速公路上发生故障时，应在来车方向 150 米以外设置警告标 志。

A、正确

B、错误

【答案】A

【技巧 1】故障规定：开双闪设标人转移；高速设标 150 以外，普路 50 至 100，违规一次记 3 分。

【技巧 2】解析：高速上发生故障，在本车道车后 150 米以外设置警告


	if (v.match(/[a-z]/i) && !events.has(v)) {
		    events.set(v, evreact.event.create<number>(v));
		}
	    }
	}

	var check = (expr:evreact.expr.Expr<number>) => {
	    for (var i = 0; i < patterns.length; i++) {
		var matchCount = 0;
		var receivedArgs = 1000;
		var update = (args:number) => {
		    matchCount++;
		    receivedArgs = args;
		}

		var orch = evreact.orchestrator.createDebug<number>();
		var expectedMatchCount = 0;
		var expectedArgs = 1000;
		var sentArgs = expectedArgs + 1;
		var expectedEmpty = false;
		var net = evreact.expr.start(sentArgs, orch, evreact.expr.react(expr, update));
		var logString = net.toString();

		for (var j = 0; j < patterns[i].length; j++) {
		    var v = patterns[i][j];
		    // 0 indicates net termination, with no match
		    // . indicates match without net termination
		    // ! indicates match and net termination together
		    // letters indicate event triggers

		    if (v.match(/[0!]/))
			expectedEmpty = true;

		    if (v.match(/[.!]/)) {
			expectedArgs = sentArgs;
			expectedMatchCount++;
		    }

		    assert(expectedEmpty == orch.isEmpty);
		    assert(expectedMatchCount == matchCount);
		    assert(expectedArgs == receivedArgs);

		    if (!v.match(/[0.!]/)) {
			sentArgs++;
			events.get(v).trigger(sentArgs);
		    }

		}

		evreact.expr.stop(net);
		assert(orch.isEmpty);
		console.log(logString);
	    }
	}

	var getevent = (v:string) => <evreact.IEvent<number>> events.get(v);

	return { getevent:getevent, check: check };
}

var p = prepare([ "a!", "bbba!bbb" ]);
p.check(evreact.expr.simple(p.getevent("a")));

var p = prepare([ "ab!", "bbbab!", "bbbcccaaacccaaacccb!aaabbbccc" ])
p.check(evreact.expr.cat([evreact.expr.simple(p.getevent("a")), evreact.expr.simple(p.getevent("b"))]));

var p = prepare([ "ab!", "ba!", "cccaaacccaaacccb!aaabbbccc" ])
p.check(evreact.expr.all([evreact.expr.simple(p.getevent("a")), evreact.expr.simple(p.getevent("b"))]));

var p = prepare([ "ab!", "ba!", "cccaaacccaaacccb!aaabbbccc" ])
p.check(evreact.expr.all([evreact.expr.simple(p.getevent("b")), evreact.expr.simple(p.getevent("a"))]));

var p = prepare([ "a.b!", "b.a!", "ccca.aacccaaacccb!aaabbbccc" ])
p.check(evreact.expr.any([evreact.expr.simple(p.getevent("a")), evreact.expr.simple(p.getevent("b"))]));

var p = prepare([ "a.b!", "b.a!", "ccca.aacccaaacccb!aaabbbccc" ])
p.check(evreact.expr.any([evreact.expr.simple(p.getevent("b")), evreact.expr.simple(p.getevent("a"))]));
import * as L from 'leaflet';
import { Marker as LMarker } from 'leaflet';
import 'leaflet-editable/src/Leaflet.Editable';
import { IMap } from '../../index';
import { Coords } from '../../coords';
import { Icon } from '../../icon';
import { ICreateMarkerOptions, IMarkerStrategy } from '../interface/marker';
import { iconFactory } from './utils/icon-factory';
import { markerPresetStorage } from './utils/marker-preset-storage';
import { Bounds } from '../../bounds';
import { Even


        .expectNext(0)
        .verifyComplete()
    }

    "Multi-thread Monos should run on their required threads" {
      val originalThread = Thread.currentThread()
      var threadRef: Thread? = null
      val value: Mono<Long> = MonoK.fx {
        val a = Mono.just(0L)
          .delayElement(Duration.ofSeconds(2), Schedulers.newSingle("newThread"))
          .k()
          .bind()
        threadRef = Thread.currentThread()
        val b = Mono.just(a)
          .subscribeOn(Schedulers.newSingle("anotherThread"))
          .k()
          .bind()
        b
      }.value()

      val nextThread = (threadRef?.name ?: "")

      value.test()
        .expectNextCount(1)
        .verifyComplete()
      nextThread shouldNotBe originalThread.name
      assertThreadNot(value, originalThread.name)
      assertThreadNot(value, nextThread)
    }

    "Mono dispose forces binding to cancel without completing too" {
      val value: Mono<Long> = MonoK.fx {
        val a = Mono.just(0L).delayElement(Duration.ofSeconds(3)).k().bind()
        a
      }.value()

      val test = value.doOnSubscribe { subscription ->
        Mono.just(0L).delayElement(Duration.ofSeconds(1))
          .subscribe { subscription.cancel() }
      }.test()

      test
        .thenAwait(Duration.ofSeconds(5))
        .expectNextCount(0)
        .thenCancel()
        .verifyThenAssertThat()
        .hasNotDroppedElements()
        .hasNotDroppedErrors()
    }

    "MonoK bracket cancellation should release resource with cancel exit status" {
      lateinit var ec: ExitCase<Throwable>
      val countDownLatch = CountDownLatch(1)

      MonoK.just(Unit)
        .bracketCase(
          use = { MonoK.async<Nothing> { } },
          release = { _, exitCase ->
            MonoK {
              ec = exitCase
              countDownLatch.countDown()
            }
          }
        )
        .value()
        .subscribe()
        .dispose()

      countDownLatch.await(100, TimeUnit.MILLISECONDS)
      ec shouldBe ExitCase.Cancelled
    }

    "MonoK async should be cancellable" {
      Promise.uncancellable<ForMonoK, Unit>(MonoK.async())
        .flatMap { latch ->
          MonoK {
            MonoK.async<Unit> { }
              .value()
              .doOnCancel { latch.complete(Unit).value().subscribe() }
              .subscribe()
              .dispose()
          }.flatMap { latch.get() }
        }.value()
        .test()
        .expectNext(Unit)
        .expectComplete()
    }

    "MonoK should suspend" {
      MonoK.fx {
        val s = effect { Mono.just(1).k().suspended()!! }.bind()

        s shouldBe 1
      }.unsafeRunSync()
    }

    "Error MonoK should suspend" {
      val error = IllegalArgumentException()

      MonoK.fx {
        val s = effect { Mono.error<Int>(error).k().suspended()!! }.attempt().bind()

        s shouldBe error.left()
      }.unsafeRunSync()
    }

    "Empty MonoK should suspend" {
      MonoK.fx {
        val s = effect { Mono.empty<Int>().k().suspended() }.bind()

        s shouldBe null
      }.unsafeRunSync


`Unexpected string '==' at position 1 in "==value".`);
  });

  it.each(['"hi there!"', "'Pěkný den!'", '"Flynn\'s *"', "\"o)'O'(o\"", '"6*7=42"', '""'])(
    'parses quoted value with any chars "%p"',
    (value) => {
      const rsql = `selector==${value}`;
      const comparison = parse(rsql);

      assert(isComparisonNode(comparison));
      assert(isSelectorNode(comparison.left));
      assert(isValueNode(comparison.right));

      expect(comparison.operator).toEqual("==");
      expect(comparison.left.selector).toEqual("selector");
      expect(comparison.right.value).toEqual(value.slice(1, -1));
    }
  );

  it.each([
    ["'10\\' 15\"'", "10' 15\""],
    ["'10\\' 15\\\"'", "10' 15\""],
    ["'10\\'\\\n15\\\"'", "10'\n15\""],
    ["'w\\\\ \\'Flyn\\n\\''", "w\\ 'Flynn'"],
    ["'\\\\(^_^)/'", "\\(^_^)/"],
    ["'\\\\'", "\\"],
    ["'\\\u2081\\''", "\u2081'"],
    ['"10\' 15\\""', "10' 15\""],
    ['"10\\\' 15\\""', "10' 15\""],
    ['"10\\\'\\\n15\\""', "10'\n15\""],
    ['"w\\\\ \\"Flyn\\n\\""', 'w\\ "Flynn"'],
    ['"\\\\(^_^)/"', "\\(^_^)/"],
    ['"\\\\"', "\\"],
    ['"\\\u2081\\\'"', "\u2081'"],
  ])('parses escaped quoted value "%p"', (value, unescapedValue) => {
    const rsql = `selector==${value}`;
    const comparison = parse(rsql);

    assert(isComparisonNode(comparison));
    assert(isSelectorNode(comparison.left));
    assert(isValueNode(comparison.right));

    expect(comparison.operator).toEqual("==");
    expect(comparison.left.selector).toEqual("selector");
    expect(comparison.right.value).toEqual(unescapedValue);
  });

  it.each([
    [
      ["chunky", "bacon", '"ftw!"'],
      ["chunky", "bacon", "ftw!"],
    ],
    [
      ["'hi!'", '"how\'re you?"'],
      ["hi!", "how're you?"],
    ],
    [["meh"], ["meh"]],
    [['")o("'], [")o("]],
    [
      ['"So I said, \\"We need more commas!\\""', '",,,,,,,"'],
      ['So I said, "We need more commas!"', ",,,,,,,"],
    ],
  ])('parses values group "%p"', (values, expectedValues) => {
    const rsql = `selector=in=(${values.join(",")})`;
    const comparison = parse(rsql);

    assert(isComparisonNode(comparison));
    assert(isSelectorNode(comparison.left));
    assert(isValueNode(comparison.right));

    expect(comparison.operator).toEqual("=in=");
    expect(comparison.left.selector).toEqual("selector");
    expect(comparison.right.value).toEqual(expectedValues);
  });

  it("throws an error for empty value", () => {
    expect(() => parse("selector=in=()")).toThrowError(`Unexpected character ')' at position 14 in "selector=in=()".`);
  });

  it.each([
    [",", ","],
    [";", ";"],
    [" and ", "and"],
    [" or ", "or"],
  ])('parses logic operator "%p"', (fragment, operator) => {
    const rsql = `selector1==value1${fragment}selector2!=value2`;
    const logic = parse(rsql);

    assert(isLogicNode(logic));
    assert(isComparisonNode(logic.left));
    expect(logic.operator).toEqual(operator);
    assert(isComparisonNode(logic.right));

    // left comparison
    assert(isSelector


CB               Fcb = NULL;
    PtrUDFCCB               Ccb = NULL;
    PVCB                    Vcb = NULL;
//    PERESOURCE              PtrResourceAcquired = NULL;
    BOOLEAN                 AcquiredVcb = FALSE;
    BOOLEAN                 AcquiredGD = FALSE;
    PUDF_FILE_INFO          fi;
    ULONG                   i = 0;
//    ULONG                   clean_stat = 0;

//    BOOLEAN                 CompleteIrp = TRUE;
    BOOLEAN                 PostRequest = FALSE;

#ifdef UDF_DBG
    UNICODE_STRING          CurName;
    PDIR_INDEX_HDR          DirNdx;
#endif

    AdPrint(("UDFCommonClose: \n"));

    _SEH2_TRY {
        if (Irp) {

            // If this is the first (IOManager) request
            // First, get a pointer to the current I/O stack location
            IrpSp = IoGetCurrentIrpStackLocation(Irp);
            ASSERT(IrpSp);

            FileObject = IrpSp->FileObject;
            ASSERT(FileObject);

            // Get the FCB and CCB pointers
            Ccb = (PtrUDFCCB)(FileObject->FsContext2);
            ASSERT(Ccb);
            if(Ccb->CCBFlags & UDF_CCB_READ_ONLY) {
                PtrIrpContext->IrpContextFlags |= UDF_IRP_CONTEXT_READ_ONLY;
            }
            Fcb = Ccb->Fcb;
        } else {
            // If this is a queued call (for our dispatch)
            // Get saved Fcb address
            Fcb = PtrIrpContext->Fcb;
            i = PtrIrpContext->TreeLength;
        }

        ASSERT(Fcb);
        Vcb = (PVCB)(PtrIrpContext->TargetDeviceObject->DeviceExtension);
        ASSERT(Vcb);
        ASSERT(Vcb->NodeIdentifier.NodeType == UDF_NODE_TYPE_VCB);
//        Vcb->VCBFlags |= UDF_VCB_SKIP_EJECT_CHECK;

        // Steps we shall take at this point are:
        // (a) Acquire the VCB shared
        // (b) Acquire the FCB's CCB list exclusively
        // (c) Delete the CCB structure (free memory)
        // (d) If this is the last close, release the FCB structure
        //       (unless we keep these around for "delayed close" functionality.
        // Note that it is often the case that the close dispatch entry point is invoked
        // in the most inconvenient of situations (when it is not possible, for example,
        // to safely acquire certain required resources without deadlocking or waiting).
        // Therefore, be extremely careful in implementing this close dispatch entry point.
        // Also note that we do not have the option of returning a failure code from the
        // close dispatch entry point; the system expects that the close will always succeed.

        UDFAcquireResourceShared(&(Vcb->VCBResource), TRUE);
        AcquiredVcb = TRUE;

        // Is this is the first (IOManager) request ?
        if (Irp) {
            PtrIrpContext->TreeLength =
            i = Ccb->TreeLength;
            // remember the number of incomplete Close requests
            InterlockedIncrement((PLONG)&(Fcb->CcbCount));
            // we can release CCB in any case
            UDFCleanUpCCB(Ccb);
            FileObject->FsContext2 = NULL;
#ifdef DBG
/*        } else {
            ASSERT(Fcb->NTRequiredFCB);
            if(Fcb->NTRequiredFCB) {
                ASSERT(Fcb->NTRequiredFCB->FileObject);
                if(Fcb->NTRequiredFCB->FileObject) {
                    ASSERT(!Fcb->NTRequiredFCB->FileObject->FsContext2);
                }
            }*/
#endif //DBG
        }

#ifdef UDF_DELAYED_


0497):updateEnmity(target)
    SpawnMob(17330503):updateEnmity(target)
    SpawnMob(17330504):updateEnmity(target)
    SpawnMob(17330505):updateEnmity(target)

end

function onMobFight(mob, target)
    -- TODO: add battle dialog
end

function onMobDisengage(mob)
    mob:showText(mob, ID.text.ANIMATED_HORN_DIALOG+2)
end

function onMobDeath(mob, player, isKiller)

    player:showText(mob, ID.text.ANIMATED_HORN_DIALOG+1)

    DespawnMob(17330495)
    DespawnMob(17330496)
    DespawnMob(17330497)
    DespawnMob(17330503)
    DespawnMob(17330504)
    DespawnMob(17330505)

end


)
            {
                var modelMatch = regex.Match(contents);
                if (modelMatch != null && modelMatch.Success)
                {
                    typeName = modelMatch.Groups["type"].Value;
                    break;
                }
            }

            var foundTypes = FindTypes(typeName);

            if (!foundTypes.Any())
            {
                foreach (var regex in _usingPatterns)
                {
                    var matches = regex.Matches(contents);
                    foreach (Match match  in matches)
                    {
                        var ns = match.Groups["namespace"].Value;

                        var nsType = "{0}.{1}".Formatted(ns, typeName);
                        foundTypes = FindTypes(nsType);
                        if (foundTypes.Any())
                        {
                            break;
                        }
                    }
                }
            }

            if (foundTypes.Count() > 1)
            {
                throw new AmbiguousMatchException("The type {0} exists in multiple assemblies".Formatted(typeName));
            }

            if (foundTypes.Any())
            {
                return foundTypes.First();
            }

            return typeof(NullModel);

        }

        private IEnumerable<Type> FindTypes(string typeName)
        {
            List<Type> foundTypes = new List<Type>();
            if (!typeName.IsNullOrWhiteSpace())
            {
                foreach (var assembly in _assemblies)
                {
                    var foundType = assembly.GetType(typeName);
                    if (foundType != null)
                    {
                        foundTypes.Add(foundType);
                    }
                }
            }

            return foundTypes;
        }
    }

}


from opencompass.multimodal.models.openflamingo import OpenFlamingoMMBenchPromptConstructor

# dataloader settings
val_pipeline = [
    dict(type='mmpretrain.PILToNumpy'),
    dict(type='mmpretrain.ResizeEdge',
         scale=224,
         interpolation='bicubic',
         backend='pillow'),
    dict(type='CenterCrop', crop_size=(224, 224)),
    dict(type='mmpretrain.PackInputs',
         algorithm_keys=[
             'question', 'options', 'category', 'l2-category', 'index',
             'context', 'options_dict'
         ])
]

dataset = dict(type='opencompass.MMBenchDataset',
               data_file='data/mmbench/mmbench_test_20230712.tsv',
               pipeline=val_pipeline)

openflamingo_mmbench_dataloader = dict(
    batch_size=1,
    num_workers=4,
    dataset=dataset,
    sampler=dict(type='DefaultSampler', shuffle=False),
    collate_fn=dict(type='default_collate'),
    persistent_workers=True,
)

# model settings
openflamingo_mmbench_model = dict(
    type='openflamingo',
    data_preprocessor=dict(
        type='mmpretrain.MultiModalDataPreprocessor',
        mean=[122.770938, 116.7460125, 104.09373615],
        std=[68.5005327, 66.6321579, 70.32316305],
        to_rgb=True,
    ),
    tokenizer=dict(type='mmpretrain.LlamaTokenizer',
                   name_or_path='decapoda-research/llama-7b-hf'),
    vision_encoder=dict(
        type='mmpretrain.VisionTransformer',
        arch='l',
        patch_size=14,
        pre_norm=True,
        norm_cfg=dict(type='LN', eps=1e-5),
        layer_cfgs=dict(act_cfg=dict(type='mmpretrain.QuickGELU')),
        final_norm=False,
        out_type='raw',
        pretrained=  # noqa: E251
        '/path/to/vision/encoder',  # noqa
    ),
    lang_encoder=dict(
        base=dict(type='mmpretrain.AutoModelForCausalLM',
                  name_or_path=
                  'decapoda-research/llama-7b-hf',
                  local_files_only=True),
        adapter=dict(type='mmpretrain.FlamingoLMAdapter',
                     vis_hidden_size=1024,
                     cross_attn_every_n_layers=4,
                     use_media_placement_augmentation=False),
    ),
    task='vqa',
    generation_cfg=dict(num_beams=3, max_new_tokens=20, length_penalty=-2.0),
    prompt_constructor=dict(type=OpenFlamingoMMBenchPromptConstructor)
)

# evaluation settings
openflamingo_mmbench_evaluator = [
    dict(
        type='opencompass.DumpResults',
        save_path=  # noqa: E251
        'work_dirs/9b-flamingo/9b-flamingo-mmbench.xlsx')
]

openflamingo_load_from = '/path/to/pretrained/weights'  # noqa


ent, 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 'jm_ranking_bloc.dart';

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

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

 JmRankingStatus get status; int get page; String get type; String get order;
/// Create a copy of JmRankingEvent
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$JmRankingEventCopyWith<JmRankingEvent> get copyWith => _$JmRankingEventCopyWithImpl<JmRankingEvent>(this as JmRankingEvent, _$identity);

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is JmRankingEvent&&(identical(other.status, status) || other.status == status)&&(identical(other.page, page) || other.page == page)&&(identical(other.type, type) || other.type == type)&&(identical(other.order, order) || other.order == order));
}

@override
int get hashCode => Object.hash(runtimeType,status,page,type,order);

@override
String toString() {
  return 'JmRankingEvent(status: $status, page: $page, type: $type, order: $order)';
}

}

/// @nodoc
abstract mixin class $JmRankingEventCopyWith<$Res>  {
  factory $JmRankingEventCopyWith(JmRankingEvent value, $Res Function(JmRankingEvent) _then) = _$JmRankingEventCopyWithImpl;
@useResult
$Res call({
 JmRankingStatus status, int page, String type, String order
});

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

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

/// Create a copy of JmRankingEvent
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? status = null,Object? page = null,Object? type = null,Object? order = null,}) {
  return _then(_self.copyWith(
status: null == status ? _self.status : status // ignore: cast_nullable_to_non_nullable
as JmRankingStatus,page: null == page ? _self.page : page // ignore: cast_nullable_to_non_nullable
as int,type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
as String,order: null == order ? _self.order : order // ignore: cast_nullable_to_non_nullable
as String,
  ));
}

}

/// Adds pattern-matching-related methods to [JmRankingEvent].
extension JmRankingEventPatterns on JmRankingEvent {
/// 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( _JmRankingEvent value)?  $default,{required TResult orElse(),}){
final _that = this


     // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_precedence#table
        when (val element = this) {
            is TsIntValue -> maxPrecedence
            is TsBigintValue -> maxPrecedence
            is TsBooleanValue -> maxPrecedence
            is TsStringValue -> maxPrecedence
            is TsBuilderValue -> maxPrecedence
            is TsDataCellValue -> maxPrecedence
            is TsSliceValue -> maxPrecedence
            is TsDictValue -> maxPrecedence
            is TsVariable -> maxPrecedence
            is TsObjectInit<*> -> maxPrecedence

            is TsFieldAccess<*, *> -> 17
            is TsConstructorCall<*> -> if (element.arguments.isEmpty()) 16 else 17
            is TsMethodCall<*> -> if (element.async) 14 else maxPrecedence
            is TsNumDiv<*> -> 12
            is TsNumAdd<*> -> 11
            is TsNumSub<*> -> 11
            is TsEquals<*> -> 8
            is TsNumPow -> 13
            is TsGreater<*> -> 9
            is TsLambdaPredicate<*> -> 2
        }

    private fun renderTestValue(arg: TvmTestValue): String =
        when (arg) {
            is TvmTestNullValue -> "null()"
            is TvmTestIntegerValue -> arg.value.toString()
            is TvmTestSliceValue -> "${renderTestValue(truncateSliceCell(arg))}.beginParse()"
            is TvmTestDictCellValue -> {
                val dictInit = "Dictionary.empty(Dictionary.Keys.BigInt(${arg.keyLength}), sliceValue)"
                val dictStores =
                    arg.entries.map { entry ->
                        ".set(${renderTestValue(entry.key)}n, ${renderTestValue(entry.value)})"
                    }

                "${dictInit}${dictStores.joinToString(separator = "")}"
            }
            is TvmTestDataCellValue -> {
                // TODO use loads

                val storeBits = { bitsToStore: String ->
                    val bitsLength = bitsToStore.length
                    val formattedBits = bitsToStore.takeIf { it.any { char -> char != '0' } } ?: "0"
                    val bitsValue = "BigInt(\"0b$formattedBits\")"

                    ".storeUint($bitsValue, $bitsLength)".takeIf { bitsLength > 0 } ?: ""
                }

                val storesBuilder = StringBuilder()
                var bitsLeft = arg.data

                arg.refs
                    .map { it to renderTestValue(it) }
                    .forEach { (ref, refValue) ->
                        when (ref) {
                            is TvmTestDataCellValue -> storesBuilder.append(".storeRef($refValue)")
                            is TvmTestDictCellValue -> {
                                val justConstructorIdx = bitsLeft.indexOfFirst { it == '1' }

                                check(justConstructorIdx != -1) {
                                    "Cell contains more dict refs than non-zero bits"
                                }

                                val bitsToStore = bitsLeft.take(justConstructorIdx)
                                bitsLeft = bitsLeft.drop(justConstructorIdx + 1)

                                storesBuilder.append(storeBits(bitsToStore))
                                storesBuilder.append(".storeDict($refValue)")
                            }
                        }
                    }

                storesBuilder.append(storeBits(bitsLeft))

                "beginCell()$storesBuilder.endCell()"
            }
            else -> TODO("Not yet implemented: $arg")
        }

    private fun endStatement() = printer.println(STATEMENT_END)

    private inline fun withIndent(block: () -> Unit) {
        try {
            printer.pushIndent()
            block()
        } finally {
            printer.popIndent()
        }
    }


/ $input-prefix-border-type: solid;
// $input-prefix-overflow: hidden;
// $input-prefix-font-color: $oil;
// $input-prefix-font-color-alt: $white;

// We use this setting to turn on/off HTML5 number spinners (the up/down arrows)
// $input-number-spinners: true;

// We use these to style the error states for inputs and labels
// $input-error-message-padding: rem-calc(6 9 9);
// $input-error-message-top: -1px;
// $input-error-message-font-size: rem-calc(12);
// $input-error-message-font-weight: $font-weight-normal;
// $input-error-message-font-style: italic;
// $input-error-message-font-color: $white;
// $input-error-message-bg-color: $alert-color;
// $input-error-message-font-color-alt: $oil;

// We use this to style the glowing effect of inputs when focused
// $glowing-effect-fade-time: .45s;
// $glowing-effect-color: $input-focus-border-color;

// We use this to style the transition when inputs are focused and when the glowing effect is disabled.
// $input-transition-fade-time: 0.15s;
// $input-transition-fade-timing-function: linear;

// Select variables
// $select-bg-color: $ghost;
// $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%);

// 12. Icon Bar
// - - - - - - - - - - - - - - - - - - - - - - - - -

// We use these to style the icon-bar and items
// $icon-bar-bg: $oil;
// $icon-bar-font-color: $white;
// $icon-bar-font-color-hover: $icon-bar-font-color;
// $icon-bar-font-size: 1rem;
// $icon-bar-hover-color: $primary-color;
// $icon-bar-icon-color: $white;
// $icon-bar-icon-color-hover: $icon-bar-icon-color;
// $icon-bar-icon-size: 1.875rem;
// $icon-bar-image-width: 1.875rem;
// $icon-bar-image-height: 1.875rem;
// $icon-bar-active-color: $primary-color;
// $icon-bar-item-padding: 1.25rem;

// We use this to set default opacity and cursor for disabled icons.
// $icon-bar-disabled-opacity: .7;

// 13. Inline Lists
// - - - - - - - - - - - - - - - - - - - - - - - - -

// $include-html-inline-list-classes: $include-html-classes;

// We use this to control the margins and padding of the inline list.
// $inline-list-top-margin: 0;
// $inline-list-opposite-margin: 0;
// $inline-list-bottom-margin: rem-calc(17);
// $inline-list-default-float-margin: rem-calc(-22);
// $inline-list-default-float-list-margin: rem-calc(22);

// $inline-list-padding: 0;

// We use this to control the overflow of the inline list.
// $inline-list-overflow: hidden;

// We use this to control the list items
// $inline-list-display: block;

// We use this to control any elements within list items
// $inline-list-children-display: block;

// 14. Joyride
// - - - - - - - - - - - - - - - - - - - - - - - - -

// $include-html-joyride-classes: $include-html-classes;

// Controlling default Joyride styles
// $joyride-tip


0x1290, 0x12b0, 1},
		{0x12b2, 0x12b5, 1},
		{0x12b8, 0x12be, 1},
		{0x12c0, 0x12c2, 2},
		{0x12c3, 0x12c5, 1},
		{0x12c8, 0x12d6, 1},
		{0x12d8, 0x1310, 1},
		{0x1312, 0x1315, 1},
		{0x1318, 0x135a, 1},
		{0x135d, 0x137c, 1},
		{0x1380, 0x1399, 1},
		{0x2d80, 0x2d96, 1},
		{0x2da0, 0x2da6, 1},
		{0x2da8, 0x2dae, 1},
		{0x2db0, 0x2db6, 1},
		{0x2db8, 0x2dbe, 1},
		{0x2dc0, 0x2dc6, 1},
		{0x2dc8, 0x2dce, 1},
		{0x2dd0, 0x2dd6, 1},
		{0x2dd8, 0x2dde, 1},
		{0xab01, 0xab06, 1},
		{0xab09, 0xab0e, 1},
		{0xab11, 0xab16, 1},
		{0xab20, 0xab26, 1},
		{0xab28, 0xab2e, 1},
	},
}

var _Georgian = &RangeTable{
	R16: []Range16{
		{0x10a0, 0x10c5, 1},
		{0x10c7, 0x10cd, 6},
		{0x10d0, 0x10fa, 1},
		{0x10fc, 0x10ff, 1},
		{0x1c90, 0x1cba, 1},
		{0x1cbd, 0x1cbf, 1},
		{0x2d00, 0x2d25, 1},
		{0x2d27, 0x2d2d, 6},
	},
}

var _Glagolitic = &RangeTable{
	R16: []Range16{
		{0x2c00, 0x2c2e, 1},
		{0x2c30, 0x2c5e, 1},
	},
	R32: []Range32{
		{0x1e000, 0x1e006, 1},
		{0x1e008, 0x1e018, 1},
		{0x1e01b, 0x1e021, 1},
		{0x1e023, 0x1e024, 1},
		{0x1e026, 0x1e02a, 1},
	},
}

var _Gothic = &RangeTable{
	R16: []Range16{},
	R32: []Range32{
		{0x10330, 0x1034a, 1},
	},
}

var _Grantha = &RangeTable{
	R16: []Range16{},
	R32: []Range32{
		{0x11300, 0x11303, 1},
		{0x11305, 0x1130c, 1},
		{0x1130f, 0x11310, 1},
		{0x11313, 0x11328, 1},
		{0x1132a, 0x11330, 1},
		{0x11332, 0x11333, 1},
		{0x11335, 0x11339, 1},
		{0x1133c, 0x11344, 1},
		{0x11347, 0x11348, 1},
		{0x1134b, 0x1134d, 1},
		{0x11350, 0x11357, 7},
		{0x1135d, 0x11363, 1},
		{0x11366, 0x1136c, 1},
		{0x11370, 0x11374, 1},
	},
}

var _Greek = &RangeTable{
	R16: []Range16{


         	cmp    %rbx,%rax
  400ce4:	72 e2                	jb     400cc8 <__do_global_dtors_aux+0x38>
  400ce6:	c6 05 6b 1f 20 00 01 	movb   $0x1,0x201f6b(%rip)        # 602c58 <completed.5895>
  400ced:	48 83 c4 08          	add    $0x8,%rsp
  400cf1:	5b                   	pop    %rbx
  400cf2:	5d                   	pop    %rbp
  400cf3:	c3                   	retq
  400cf4:	66 66 66 2e 0f 1f 84 	data32 data32 nopw %cs:0x0(%rax,%rax,1)
  400cfb:	00 00 00 00 00

0000000000400d00 <frame_dummy>:
  400d00:	48 83 3d d8 15 20 00 	cmpq   $0x0,0x2015d8(%rip)        # 6022e0 <__JCR_END__>
  400d07:	00
  400d08:	55                   	push   %rbp
  400d09:	48 89 e5             	mov    %rsp,%rbp
  400d0c:	74 12                	je     400d20 <frame_dummy+0x20>
  400d0e:	b8 00 00 00 00       	mov    $0x0,%eax
  400d13:	48 85 c0             	test   %rax,%rax
  400d16:	74 08                	je     400d20 <frame_dummy+0x20>
  400d18:	5d                   	pop    %rbp
  400d19:	bf e0 22 60 00       	mov    $0x6022e0,%edi
  400d1e:	ff e0                	jmpq   *%rax
  400d20:	5d                   	pop    %rbp
  400d21:	c3                   	retq
  400d22:	90                   	nop
  400d23:	90                   	nop

0000000000400d24 <main>:
  400d24:	53                   	push   %rbx
  400d25:	48 89 f3             	mov    %rsi,%rbx
  400d28:	83 ff 01             	cmp    $0x1,%edi
  400d2b:	75 10                	jne    400d3d <main+0x19>
  400d2d:	48 8b 05 0c 1f 20 00 	mov    0x201f0c(%rip),%rax        # 602c40 <stdin@@GLIBC_2.2.5>
  400d34:	48 89 05 e5 21 20 00 	mov    %rax,0x2021e5(%rip)        # 602f20 <infile>
  400d3b:	eb 56                	jmp    400d93 <main+0x6f>
  400d3d:	83 ff 02             	cmp    $0x2,%edi
  400d40:	75 35                	jne    400d77 <main+0x53>
  400d42:	48 8b 7e 08          	mov    0x8(%rsi),%rdi
  400d46:	be 46 1d 40 00       	mov    $0x401d46,%esi
  400d4b:	e8 80 fd ff ff       	callq  400ad0 <fopen@plt>
  400d50:	48 89 05 c9 21 20 00 	mov    %rax,0x2021c9(%rip)        # 602f20 <infile>
  400d57:	48 85 c0             	test   %rax,%rax
  400d5a:	75 37                	jne    400d93 <main+0x6f>
  400d5c:	48 8b 53 08          	mov    0x8(%rbx),%rdx
  400d60:	48 8b 33             	mov    (%rbx),%rsi
  400d63:	bf 10 19 40 00       	mov    $0x401910,%edi


-footer__dls-module__icon___3MnX8 {
        display: inline-block;
        line-height: 1;
        vertical-align: middle
      }

      .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__icon___3MnX8::before {
        -webkit-font-smoothing: antialiased;
        -webkit-text-stroke: 0;
        -moz-osx-font-smoothing: grayscale;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        display: block;
        font-family: "dls-icons";
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        letter-spacing: 0;
        position: relative;
        speak: none;
        vertical-align: middle
      }

      .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__icon___3MnX8:hover {
        text-decoration: none
      }

      .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__icon___3MnX8 {
        font-size: 1.75Rem
      }

      .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__icon___3MnX8::before {
        font-size: 1.75Rem
      }

      .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__iconHover___3jtI0:hover {
        cursor: pointer
      }

      .axp-footer__dls-module__module___1_EeR *,
      .axp-footer__dls-module__module___1_EeR *::before,
      .axp-footer__dls-module__module___1_EeR *::after {
        box-sizing: inherit
      }

      .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__container___1xEgQ {
        margin-left: auto;
        margin-right: auto;
        padding-left: 10px;
        padding-right: 10px
      }

      .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__row___3H3xq {
        display: flex;
        flex-wrap: wrap;
        margin-left: -5px;
        margin-right: -5px
      }

      .axp-footer__dls-module__module___1_EeR [class^=col-],
      .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__col___9B4qP {
        position: relative;
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 1px
      }

      .axp-footer__dls-module__module___1_EeR [class^=col-],
      .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__col___9B4qP {
        padding-left: 5px;
        padding-right: 5px
      }

      .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__colXs12___29EFm {
        flex: 0 0 100%;
        max-width: 100%
      }

      @media(min-width: 375px) {
        .axp-footer__dls-module__module___1_EeR .axp-footer__dls-module__container___1xEgQ {
          padding-left: 12px;
          padding-righ


}
        val files =
            dir.listFiles()
                ?: // Had this problem on an API 16 emulator after a stress test - directory existed
// but listFiles() returned null due to EMFILE (Too many open files)
// Don't throw here - later file accesses will provide a better exception.
// and the directory exists, even if it's unusable.
                return dir
        for (f in files) {
            Assert.assertTrue(f.delete())
        }
        return dir
    }

    /**
     * Copy a file from the application's assets directory and return the absolute path of that
     * copy.
     *
     * Files located inside the application's assets collection are not stored on the file
     * system and can not return a usable path, so copying them to disk is a requirement.
     */
    @JvmStatic
    @CheckResult
    @Throws(IOException::class)
    fun getTestFilePath(
        context: Context,
        name: String,
    ): String {
        val `is` =
            context.classLoader.getResourceAsStream("assets/$name")
                ?: throw FileNotFoundException("Could not find test file: assets/$name")
        val dst = File(getTestDir(context, name), name).absolutePath
        writeToFile(`is`, dst)
        return dst
    }
}
package pers.neige.neigeitems.command

import org.bukkit.command.CommandSender
import org.bukkit.command.PluginCommand
import pers.neige.colonel.CommandProcessor
import pers.neige.colonel.node.Node
import pers.neige.colonel.root
import pers.neige.neigeitems.NeigeItems
import pers.neige.neigeitems.annotation.Awake
import pers.neige.neigeitems.command.subcommand.Help
import pers.neige.neigeitems.utils.CommandUtils
import pers.neige.neigeitems.utils.LangUtils.sendLang

object Command {
    private val COMMAND_NAME = NeigeItems::class.java.simpleName.lowercase()
    private val ALIASES = arrayListOf(
        kotlin.text.StringBuilder().also {
            for (c in NeigeItems::class.java.simpleName) {
                if (c.isUpperCase() || c.isDigit()) it.append(c.lowercase())
            }
        }.toString()
    )
    private var command: PluginCommand? = null
    private val node = root<CommandSender, Unit>(COMMAND_NAME)

    @JvmStatic
    @Awake(lifeCycle = Awake.LifeCycle.ENABLE)
    fun init() {
        NeigeItems.getInstance().scanner.getCustomFields("root", Node::class.java).forEach {
            Node.then(node, it as Node<CommandSender, Unit>, false)
        }
        node.buildLiteralSearcher()

        command = CommandUtils.newPluginCommand(COMMAND_NAME, NeigeItems.getInstance())?.apply {
            aliases = ALIASES
            permission = "$COMMAND_NAME.command"
            CommandProcessor.processCommand(this, node, { context, permission ->
                context.source!!.sendLang(
                    "Messages.insufficientPermissions",
                    mapOf(Pair("{permission}", permission))
                )
            }) { context ->
                Help.help(context.source!!)
            }
            CommandUtils.getCommandMap().register(this.name, this)
        }
    }
}
package pers.neige.neigeitems.manager

import net.md_5.bungee.api.chat.BaseComponent
import net.md_5.bungee.api.chat.ClickEvent
import net.md_5.bung


gmo_position_top_right('\uf553'),
		gmo_post('\uf552'),
		gmo_post_add('\uf551'),
		gmo_potted_plant('\uf550'),
		gmo_power('\uf54f'),
		gmo_power_input('\uf54e'),
		gmo_power_off('\uf54d'),
		gmo_power_rounded('\uf54c'),
		gmo_power_settings_new('\uf54b'),
		gmo_prayer_times('\uf54a'),
		gmo_precision_manufacturing('\uf549'),
		gmo_pregnancy('\uf548'),
		gmo_pregnant_woman('\uf547'),
		gmo_preliminary('\uf546'),
		gmo_prescriptions('\uf545'),
		gmo_present_to_all('\uf544'),
		gmo_preview('\uf543'),
		gmo_preview_off('\uf542'),
		gmo_price_change('\uf541'),
		gmo_price_check('\uf540'),
		gmo_print('\uf53f'),
		gmo_print_add('\uf53e'),
		gmo_print_connect('\uf53d'),
		gmo_print_disabled('\uf53c'),
		gmo_print_error('\uf53b'),
		gmo_print_lock('\uf53a'),
		gmo_priority('\uf539'),
		gmo_priority_high('\uf538'),
		gmo_privacy('\uf537'),
		gmo_privacy_screen('\uf536'),
		gmo_privacy_screen_off('\uf535'),
		gmo_privacy_tip('\uf534'),
		gmo_private_connectivity('\uf533'),
		gmo_problem('\uf532'),
		gmo_procedure('\uf531'),
		gmo_process_chart('\uf530'),
		gmo_production_quantity_limits('\uf52f'),
		gmo_productivity('\uf52e'),
		gmo_progress_activity('\uf52d'),
		gmo_prompt_suggestion('\uf52c'),
		gmo_propane('\uf52b'),
		gmo_propane_tank('\uf52a'),
		gmo_psychiatry('\uf529'),
		gmo_psychology('\uf528'),
		gmo_psychology_alt('\uf527'),
		gmo_public('\uf526'),
		gmo_public_off('\uf525'),
		gmo_publish('\uf524'),
		gmo_published_with_changes('\uf523'),
		gmo_pulmonology('\uf522'),
		gmo_pulse_alert('\uf521'),
		gmo_punch_clock('\uf520'),
		gmo_push_pin('\uf51f'),
		gmo_qr_code('\uf51e'),
		gmo_qr_code_2('\uf51d'),
		gmo_qr_code_2_add('\uf51c'),
		gmo_qr_code_scanner('\uf51b'),
		gmo_query_stats('\uf51a'),
		gmo_question_exchange('\uf519'),
		gmo_question_mark('\uf518'),
		gmo_queue_music('\uf517'),
		gmo_queue_play_next('\uf516'),
		gmo_quick_phrases('\uf515'),
		gmo_quick_reference('\uf514'),
		gmo_quick_reference_all('\uf513'),
		gmo_quick_reorder('\uf512'),
		gmo_quickreply('\uf511'),
		gmo_quiet_time('\uf510'),
		gmo_quiet_time_active('\uf50f'),
		gmo_


ublic readonly Outputs.GatewayRouteSpecHttpRouteActionRewritePath? Path;
        /// <summary>
        /// Specified beginning characters to rewrite.
        /// </summary>
        public readonly Outputs.GatewayRouteSpecHttpRouteActionRewritePrefix? Prefix;

        [OutputConstructor]
        private GatewayRouteSpecHttpRouteActionRewrite(
            Outputs.GatewayRouteSpecHttpRouteActionRewriteHostname? hostname,

            Outputs.GatewayRouteSpecHttpRouteActionRewritePath? path,

            Outputs.GatewayRouteSpecHttpRouteActionRewritePrefix? prefix)
        {
            Hostname = hostname;
            Path = path;
            Prefix = prefix;
        }
    }
}


#### What this tests ####
#    This tests the model alias mapping - if user passes in an alias, and has set an alias, set it to the actual value

import os
import sys
import traceback

sys.path.insert(
    0, os.path.abspath("../..")
)  # Adds the parent directory to the system path
import pytest

import litellm
from litellm import completion, embedding

litellm.set_verbose = True

model_alias_map = {"good-model": "groq/llama3-8b-8192"}

def test_model_alias_map(caplog):
    try:
        litellm.model_alias_map = model_alias_map
        response = completion(
            "good-model",
            messages=[{"role": "user", "content": "Hey, how's it going?"}],
            top_p=0.1,
            temperature=0.01,
            max_tokens=10,
        )
        print(response.model)

        captured_logs = [rec.levelname for rec in caplog.records]

        for log in captured_logs:
            assert "ERROR" not in log

        assert "llama3-8b-8192" in response.model
    except litellm.ServiceUnavailableError:
        pass
    except Exception as e:
        pytest.fail(f"Error occurred: {e}")

# test_model_alias_map()


emu-xref href=#sec-property-descriptor-specification-type id=_ref_2657>Property Descriptor</emu-xref> <var>Desc</var>, the following steps are taken:

 <emu-alg>

<emu-xref href=#assert id=_ref_2658>Assert</emu-xref>: <emu-xref aoid=IsPropertyKey id=_ref_2659>IsPropertyKey</emu-xref>(<var>P</var>) is <emu-val>true</emu-val>.
If <var>P</var> is "length", then

Return ? <emu-xref aoid=ArraySetLength id=_ref_2660>ArraySetLength</emu-xref>(<var>A</var>, <var>Desc</var>).

Else if <var>P</var> is an <emu-xref href=#array-index id=_ref_2661>array index</emu-xref>, then

Let <var>oldLenDesc</var> be <emu-xref aoid=OrdinaryGetOwnProperty id=_ref_2662>OrdinaryGetOwnProperty</emu-xref>(<var>A</var>, "length").
<emu-xref href=#assert id=_ref_2663>Assert</emu-xref>: <var>oldLenDesc</var> will never be <emu-val>undefined</emu-val> or an accessor descriptor because Array objects are created with a length <emu-xref href=#sec-object-type id=_ref_2664>data property</emu-xref> that cannot be deleted or reconfigured.
Let <var>oldLen</var> be <var>oldLenDesc</var>.[[Value]].
Let <var>index</var> be ! <emu-xref aoid=ToUint32 id=_ref_2665>ToUint32</emu-xref>(<var>P</var>).
If <var>index</var> ≥ <var>oldLen</var> and <var>oldLenDesc</var>.[[Writable]] is <emu-val>false</emu-val>, return <emu-val>false</emu-val>.
Let <var>succeeded</var> be ! <emu-xref aoid=OrdinaryDefineOwnProperty id=_ref_2666>OrdinaryDefineOwnProperty</emu-xref>(<var>A</var>, <var>P</var>, <var>Desc</var>).
If <var>succeeded</var> is <emu-val>false</emu-val>, return <emu-val>false</emu-val>.
If <var>index</var> ≥ <var>oldLen</var>, then

Set <var>oldLenDesc</var>.[[Value]] to <var>index</var> + 1.
Let <var>succeeded</var> be <emu-xref aoid=OrdinaryDefineOwnProperty id=_ref_2667>OrdinaryDefineOwnProperty</emu-xref>(<var>A</var>, "length", <var>oldLenDesc</var>).
<emu-xref href=#assert id=_ref_2668>Assert</emu-xref>: <var>succeeded</var> is <emu-val>true</emu-val>.

Return <emu-val>true</emu-val>.

Return <emu-xref aoid=OrdinaryDefineOwnProperty id=_ref_2669>OrdinaryDefineOwnProperty</emu-xref>(<var>A</var>, <var>P</var>, <var>Desc</var>).

</emu-alg>
 </emu-clause>
 <emu-clause id=sec-arraycr


      //   ],
      // ),
      trailing: Row(
        mainAxisSize: MainAxisSize.min,
        children: [
          Btn.icon(
            onTap: () => _onTapRenameChat(chatId, context),
            icon: const Icon(BoxIcons.bx_rename, size: 19),
          ),
          Btn.icon(
            onTap: () => _onTapDeleteChat(chatId, context),
            icon: const Icon(Icons.delete, size: 19),
          ),
        ],
      ),
      onTap: () {
        Fns.throttle(
          () {
            _switchChat(chatId);
            if (!_isDesktop.value && _curPage.value != HomePageEnum.chat) {
              _switchPage(HomePageEnum.chat);
            }
          },
          id: 'history_item',
          duration: 70,
        );
      },
    );
  }

  @override
  bool get wantKeepAlive => true;
}
import 'dart:convert';

import 'package:fl_lib/fl_lib.dart';

class SettingStore extends HiveStore {
  SettingStore._() : super('setting');

  static final instance = SettingStore._();

  late final themeMode = propertyDefault('themeMode', 0);

  late final themeColorSeed = propertyDefault('themeColorSeed', 4287106639);

  //late final fontSize = property('fontSize', 12.0);

  late final autoCheckUpdate = propertyDefault('autoCheckUpdate', true);

  /// Auto scroll to bottom when new message comes.
  late final scrollBottom = propertyDefault('scrollBottom', true);

  late final locale = propertyDefault('locale', '');

  late final softWrap = propertyDefault('softWrap', true);

  late final autoRmDupChat = propertyDefault('autoRmDupChat', true);

  late final genTitle = propertyDefault('genTitle', true);

  late final initHelpShown = propertyDefault('initHelpShown', false);
  //late final imPro = property('imPro', false);

  /// Calcualte tokens length
  // late final calcTokenLen = property('calcTokenLen', true);

  // late final replay = property('replay', true);

  late final hideTitleBar = propertyDefault('hideTitleBar', isDesktop);

  /// If it is false, delete without asking.
  late final confrimDel = propertyDefault('confrimDel', true);

  late final joinBeta = propertyDefault('joinBeta', false);

  /// For chat and share
  late final compressImg = propertyDefault('compressImg', true);

  /// Save the chat after each message sent or received even if it has error.
  late final saveErrChat = propertyDefault('saveErrChat', false);

  late final scrollSwitchChat = propertyDefault('scrollSwitchChat', isMobile);

  /// For desktop only.
  /// Record the position and size of the window.
  late final windowState = property<WindowState>(
    'windowState',
    fromObj: (jsonStr) => WindowState.fromJson(
      jsonDecode(jsonStr as String) as Map<String, dynamic>,
    ),
    toObj: (state) => state == null ? null : jsonEncode(state.toJson()),
  );

  late final avatar = propertyDefault('avatar', '🧐');

  late final introVer = propertyDefault('introVer', 0);

  /// Auto scroll to the bottom after switching chat.
  late final scrollAfterSwitch = propertyDefault('scrollAfterSwitch', false);

  /// If true, app will uploads the photo to the server.
  late final usePhotograph = propertyDefault('usePhotograph', true);

  /// Days to keep the chat history trashes.
  late final trashDays = propertyDefault('trashDays', 7);
}
import 'dart:convert';
import 'dart:io';

im


">

Class hydra.ext.fr.inria.coq.syntax.FixAnnot_Wf extends java.lang.Object implements Serializable

Serialized Fields

ident

Ident ident

term

OneTerm term

Class hydra.ext.fr.inria.coq.syntax.FixAnnot.Measure extends FixAnnot implements Serializable

Serialized Fields

value

FixAnnot_Measure value

Class hydra.ext.fr.inria.coq.syntax.FixAnnot.Struct extends FixAnnot implements Serializable

Serialized Fields

value

Ident value

Class <a href="hydra/ext/fr/inria/coq/syntax/FixAnnot.Wf.html" title="class in hydra.ext.fr.inria.co


    }

    int fd = open( filename, O_RDONLY, 0 );
    int num_read=read( fd, sbuf, ( sizeof sbuf )-1 );
    close( fd );

    if( !num_read ) {
        return 0;
    }

    // Peak resident set size
    int Vm = 0;
    if (type_of_memory == 0){
        Vm = atoi( strstr( sbuf, "VmRSS:" )+6 );
    } else if (type_of_memory == 1){
        Vm = atoi( strstr( sbuf, "VmHWM:" )+6 );
    }

    // Return RSS in GB
    return ( double )Vm/1024./1024.;
}

std::string Tools::printBytes( uint64_t nbytes )
{
    std::ostringstream t( "" );
    if( nbytes < 1024 ) {
        t << nbytes << " bytes";
    } else {
        double nb = nbytes;
        if( nbytes < 1048576 ) {
            t << std::fixed << std::setprecision( 2 ) << ( nb/1024. ) << " K";
        } else if( nbytes < 1073741824 ) {
            t << std::fixed << std::setprecision( 2 ) << ( nb/1048576. ) << " M";
        } else if( nbytes < 1099511627776 ) {
            t << std::fixed << std::setprecision( 2 ) << ( nb/1073741824. ) << " G";
        } else {
            t << std::fixed << std::setprecision( 2 ) << ( nb/1099511627776. ) << " T";
        }
    }
    return t.str();
}

//! Wrapper to get the thread number
int Tools::getOMPThreadNum()
{
#ifdef _OPENMP
    return ::omp_get_thread_num();
#else
    return 0;
#endif
}

// ---------------------------------------------------------------------------------------------------------------------
//! This function returns true/flase whether the file exists or not
//! \param file file name to test
// ---------------------------------------------------------------------------------------------------------------------
bool Tools::fileExists( const std::string &filename )
{
    std::ifstream file( filename.c_str() );
    return !file.fail();
}

std::string Tools::xyz = "XYZ";
/*
 * backward.hpp
 * Copyright 2013 Google Inc. All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#ifndef H_6B9572DA_A64B_49E6_B234_051480991C89
#define H_6B9572DA_A64B_49E6_B234_051480991C89

#ifndef __cplusplus
#	error "It's not going to compile without a C++ compiler..."
#endif

#if	  defined(BACKWARD_CXX11)
#elif defined(BACKWARD_CXX98)
#else
#	if __cplusplus >= 2011


 (literals == BooleanLiteralSet.BOTH) {
        break;
      }
    }
    return literals;
  }

  @Override
  public TypePair getTypesUnderEquality(JSType that) {
    UnionTypeBuilder thisRestricted = new UnionTypeBuilder(registry);
    UnionTypeBuilder thatRestricted = new UnionTypeBuilder(registry);
    for (JSType element : alternates) {
      TypePair p = element.getTypesUnderEquality(that);
      if (p.typeA != null) {
        thisRestricted.addAlternate(p.typeA);
      }
      if (p.typeB != null) {
        thatRestricted.addAlternate(p.typeB);
      }
    }
    return new TypePair(
        thisRestricted.build(),
        thatRestricted.build());
  }

  @Override
  public TypePair getTypesUnderInequality(JSType that) {
    UnionTypeBuilder thisRestricted = new UnionTypeBuilder(registry);
    UnionTypeBuilder thatRestricted = new UnionTypeBuilder(registry);
    for (JSType element : alternates) {
      TypePair p = element.getTypesUnderInequality(that);
      if (p.typeA != null) {
        thisRestricted.addAlternate(p.typeA);
      }
      if (p.typeB != null) {
        thatRestricted.addAlternate(p.typeB);
      }
    }
    return new TypePair(
        thisRestricted.build(),
        thatRestricted.build());
  }

  @Override
  public TypePair getTypesUnderShallowInequality(JSType that) {
    UnionTypeBuilder thisRestricted = new UnionTypeBuilder(registry);
    UnionTypeBuilder thatRestricted = new UnionTypeBuilder(registry);
    for (JSType element : alternates) {
      TypePair p = element.getTypesUnderShallowInequality(that);
      if (p.typeA != null) {
        thisRestricted.addAlternate(p.typeA);
      }
      if (p.typeB != null) {
        thatRestricted.addAlternate(p.typeB);
      }
    }
    return new TypePair(
        thisRestricted.build(),
        thatRestricted.build());
  }

  @Override
  public <T> T visit(Visitor<T> visitor) {
    return visitor.caseUnionType(this);
  }

  @Override
  JSType resolveInternal(ErrorReporter t, StaticScope<JSType> scope) {
    setResolvedTypeInternal(this); // for circularly defined types.

    boolean changed = false;
    ImmutableList.Builder<JSType> resolvedTypes = ImmutableList.builder();
    for (JSType alternate : alternates) {
      JSType newAlternate = alternate.resolve(t, scope);
      changed |= (alternate != newAlternate);
      resolvedTypes.add(alternate);
    }
    if (changed) {
      Collection<JSType> newAlternates = resolvedTypes.build();
      Preconditions.checkState(
          newAlternates.hashCode() == this.hashcode);
      alternates = newAlternates;
    }
    return this;
  }

  @Override
  public String toDebugHashCodeString() {
    List<String> hashCodes = Lists.newArrayList();
    for (JSType a : alternates) {
      hashCodes.add(a.toDebugHashCodeString());
    }
    return "{(" + Joiner.on(",").join(hashCodes) + ")}";
  }

  @Override
  public boolean setValidator(Predicate<JSType> validator) {
    for (JSType a : alternates) {
      a.setValidator(validator);
    }
    return true;
  }
}
/*
 *
 * ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * fo