```bash
python -m pip install -e ".[inference]"
```

Download models

The `Llama-3.1-8B-Instruct` model will be downloaded automatically from Hugging Face,
make sure you agree to the license terms [here](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct).
If you already have it downloaded, please check the [`llama3.1_8B.yaml`](configs/model/llama3.1_8B.yaml) config file to specify the checkpoint path.

We provide 3 LoRA parameter sets for Llama-3.1-8B-Instruct:
- `asr-10k`: Model trained with ASR from 10k videos of the VidChapters-7M dataset. Used for our Speech-based frame selector.
- `captions_asr-10k`: Model trained with Captions+ASR from 10k videos of the VidChapters-7M dataset. Used for most of our experiments.
- `captions_asr-1k`: Model trained with Captions+ASR from 1k videos of the VidChapters-7M dataset. Used for the full test set.

To download the LoRA parameter sets, run:
```bash
python tools/download/models.py "asr-1k" --local_dir "."
python tools/download/models.py "asr-10k" --local_dir "."
python tools/download/models.py "captions_asr-1k" --local_dir "."
python tools/download/models.py "captions_asr-10k" --local_dir "."
```

Download captions

First, create a directory to store the data and create a symlink to it from the VidChapters directory:
```bash
mkdir path/to/VidChapters/
ln -s path/to/VidChapters/ dataset/
```

The `dataset/captions/` directory contains the video captions organized by the captioning model used (`HwwwH_MiniCPM-V-2`) and the sampling method.
To download the captions for our sampling method (`asr_s10k-2_train_preds+no-asr-10s`), run:
```bash
bash tools/download/captions.sh asr_s10k-2_train_preds+no-asr-10s
```
This method uses predictions from an ASR model trained on the `s10k-2` subset when ASR is available for the video,
and falls back to sampling frames every 10 seconds when ASR is not available.
The other sampling methods available are:
```bash
bash tools/download/captions.sh 10s
bash tools/download/captions.sh 100f
bash tools/download/captions.sh shot_boundaries
```
Please refer to the [how_to_extract_captions.md](tools/captions/how_to_extract_captions.md) documentation for more details.

Download docs

The `dataset/docs/` directory contains the ASR and chapter data for the VidChapters-7M dataset. We provide:
1. **Complete dataset**: Contains 817k videos with approximately 20 GB of ASR data.
2. **Specific subsets** used in our paper experiments (recommended for most users as it is much faster to load and download).

To download a specific subset's data (which includes video ids, ASR and chapter information), run:
```bash
bash tools/download/docs.sh subset_name
```

Where `subset_name` can be `full` for the complete dataset or one of the following:

Training sets:
- `sml1k_train`: Training set with 1k videos (**s**hort+**m**edium+**l**ong), used for ablation studies.
- `sml10k_train`: Training set with 10k videos (**s**hort+**m**edium+**l**ong), used for Table 1 and the da


ainer.fg-menu-flyout { overflow: visible; }

.fg-menu, .fg-menu ul { list-style-type:none; padding: 0; margin:0; }

.fg-menu { position:relative; }
.fg-menu-flyout .fg-menu { position:static; }

.fg-menu ul { position:absolute; top:0; }
.fg-menu ul ul { top:-1px; }

.fg-menu-container.fg-menu-ipod .fg-menu-content,
.fg-menu-container.fg-menu-ipod .fg-menu-content ul { background: none !important; }

.fg-menu.fg-menu-scroll,
.fg-menu ul.fg-menu-scroll { overflow: scroll;  overflow-x: hidden; }

.fg-menu li { clear:both; float:left; width:100%; margin: 0; padding:0; border: 0; }
.fg-menu li li { font-size:1em; } /* inner li font size must be reset so that they don't blow up */

.fg-menu-flyout ul ul { padding: .4em; }
.fg-menu-flyout li { position:relative; }

.fg-menu-scroll { overflow: scroll; overflow-x: hidden; }

.fg-menu-breadcrumb { margin: 0; padding: 0; }

.fg-menu-footer {  margin-top: .4em; padding: .4em; }
.fg-menu-header {  margin-bottom: .4em; padding: .4em; }

.fg-menu-breadcrumb li { float: left; list-style: none; margin: 0; padding: 0 .2em; font-size: .9em; opacity: .7; }
.fg-menu-breadcrumb li.fg-menu-prev-list,
.fg-menu-breadcrumb li.fg-menu-current-crumb { clear: left; float: none; opacity: 1; }
.fg-menu-breadcrumb li.fg-menu-current-crumb { padding-top: .2em; }

.fg-menu-breadcrumb a,
.fg-menu-breadcrumb span { float: left; }

.fg-menu-footer a:link,
.fg-menu-footer a:visited { float:left; width:100%; text-decoration: none; }
.fg-menu-footer a:hover,
.fg-menu-footer a:active {  }

.fg-menu-footer a span { float:left; cursor: pointer; }

.fg-menu-breadcrumb .fg-menu-prev-list a:link,
.fg-menu-breadcrumb .fg-menu-prev-list a:visited,
.fg-menu-breadcrumb .fg-menu-prev-list a:hover,
.fg-menu-breadcrumb .fg-menu-prev-list a:active { background-image: none; text-decoration:none; }

.fg-menu-breadcrumb .fg-menu-prev-list a { float: left; padding-right: .4em; }
.fg-menu-breadcrumb .fg-menu-prev-list a .ui-icon { float: left; }

.fg-menu-breadcrumb .fg-menu-current-crumb a:link,
.fg-menu-breadcrumb .fg-menu-current-crumb a:visited,
.fg-menu-breadcrumb .fg-menu-current-crumb a:hover,
.fg-menu-breadcrumb .fg-menu-current-crumb a:active { display:block; background-image:none; font-size:1.3em; text-decoration:none; }

/* REQUIRED LINK STYLES: links are "display:block" by default; if the menu options are split into
	selectable node links and 'next' links, the script floats the node links left and floats the 'next' links to the right	*/

.fg-menu a:link,
.fg-menu a:visited,
.fg-menu a:hover,
.fg-menu a:active { float:left; width:92%; padding:.3em 3%; text-decoration:none; outline: 0 !important; }

.fg-menu a { border: 1px dashed transparent; }

.fg-menu a.ui-state-default:link,
.fg-menu a.ui-state-default:visited,


 {
      map['CFOP'] = Variable<int?>(cfop.value);
    }
    return map;
  }

  @override
  String toString() {
    return (StringBuffer('CompraPedidoDetalhesCompanion(')
          ..write('id: $id, ')
          ..write('idCompraPedidoCabecalho: $idCompraPedidoCabecalho, ')
          ..write('idProduto: $idProduto, ')
          ..write('quantidade: $quantidade, ')
          ..write('valorUnitario: $valorUnitario, ')
          ..write('valorSubtotal: $valorSubtotal, ')
          ..write('taxaDesconto: $taxaDesconto, ')
          ..write('valorDesconto: $valorDesconto, ')
          ..write('valorTotal: $valorTotal, ')
          ..write('cst: $cst, ')
          ..write('csosn: $csosn, ')
          ..write('cfop: $cfop')
          ..write(')'))
        .toString();
  }
}

class $CompraPedidoDetalhesTable extends CompraPedidoDetalhes
    with TableInfo<$CompraPedidoDetalhesTable, CompraPedidoDetalhe> {
  @override
  final GeneratedDatabase attachedDatabase;
  final String? _alias;
  $CompraPedidoDetalhesTable(this.attachedDatabase, [this._alias]);
  final VerificationMeta _idMeta = const VerificationMeta('id');
  @override
  late final GeneratedColumn<int?> id = GeneratedColumn<int?>(
      'ID', aliasedName, true,
      type: const IntType(), requiredDuringInsert: false);
  final VerificationMeta _idCompraPedidoCabecalhoMeta =
      const VerificationMeta('idCompraPedidoCabecalho');
  @override
  late final GeneratedColumn<int?> idCompraPedidoCabecalho =
      GeneratedColumn<int?>('ID_COMPRA_PEDIDO_CABECALHO', aliasedName, true,
          type: const IntType(),
          requiredDuringInsert: false,
          $customConstraints:
              'NULLABLE REFERENCES COMPRA_PEDIDO_CABECALHO(ID)');
  final VerificationMeta _idProdutoMeta = const VerificationMeta('idProduto');
  @override
  late final GeneratedColumn<int?> idProduto = GeneratedColumn<int?>(
      'ID_PRODUTO', aliasedName, true,
      type: const IntType(),
      requiredDuringInsert: false,
      $customConstraints: 'NULLABLE REFERENCES PRODUTO(ID)');
  final VerificationMeta _quantidadeMeta = const VerificationMeta('quantidade');
  @override
  late final GeneratedColumn<double?> quantidade = GeneratedColumn<double?>(
      'QUANTIDADE', aliasedName, true,
      type: const RealType(), requiredDuringInsert: false);
  final VerificationMeta _valorUnitarioMeta =
      const VerificationMeta('valorUnitario');
  @override
  late final GeneratedColumn<double?> valorUnitario = GeneratedColumn<double?>(
      'VALOR_UNITARIO', aliasedName, true,
      type: const RealType(), requiredDuringInsert: false);
  final VerificationMeta _valorSubtotalMeta =
      const VerificationMeta('valorSubtotal');
  @override
  late final GeneratedColumn<double?> valorSubtotal = GeneratedColumn<double?>(
      'VALOR_SUBTOTAL', aliasedName, true,
      type: const RealType(), requiredDuringInsert: false);
  final VerificationMeta _taxaDescontoMeta =
      const Verification


tle_for_text, self.__type_for_text, self.__author_for_text = title, type_of_title, author
                        return thing
                else:
                    with open(f"{mode}_text.txt", "r", encoding="utf-8") as f_read:
                        # print(f_read.seek(randint(0, sum(1 for line in f_read))))
                        all_text = f_read.readlines()  # 12728 bytes
                        thing = ""
                        while not thing:
                            thing = choice(all_text).lstrip()
                        # thing = 'there where thing' # ------------------------------COMMENT----------------------------
                        self.correct_words_list = thing.split()
                        correct_words_list_from_random = self.correct_words_list
                        self.type_line_edit.correct_words_list = self.correct_words_list
                        self.type_line_edit.typed_words_list = self.typed_in_text_list
                        return thing
            else:
                thing = ' '.join(choice(random_words) for x in range(50))
                self.correct_words_list = thing.split()
                # correct_words_list_from_random = self.correct_words_list
                self.type_line_edit.correct_words_list = self.correct_words_list
                self.type_line_edit.typed_words_list = self.typed_in_text_list
                return thing
        else:
            thing = ' '.join(choice(random_words) for x in range(1_000))
            self.correct_words_list = thing.split()
            # correct_words_list_from_random = self.correct_words_list
            self.type_line_edit.correct_words_list = self.correct_words_list
            self.type_line_edit.typed_words_list = self.typed_in_text_list
            return thing

def run_function():
    new_app = QApplication(sys.argv)
    window = BuriRacerWindow()
    new_app.exec_()

if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = BuriRacerWindow()
    sys.exit(app.exec_())


"潔希卡·錢柏",
		[4097] = "[Deprecated for 4.x]Galak Stormer",
		[4129] = "亂齒狂吠者",
		[4161] = "琳沙娜",
		[8385] = "茉拉·符文圖騰",
		[4225] = "塞諾里奧",
		[4257] = "蘭納·雷酒",
		[4289] = "血色塑能師",
		[4321] = "巴德拉克",
		[4385] = "枯藤狂怒者",
		[4417] = "迪菲亞監工",
		[8897] = "末日之爐工匠",
		[4481] = "馬塞爾·達比雷",
		[9025] = "洛考爾領主",
		[4545] = "[Deprecated for 4.x]納格澤恩",
		[4577] = "米利爾·格里高利",
		[4609] = "馬許醫生",
		[4641] = "瑪格拉姆逐風者",
		[4673] = "怨怒背叛者",
		[4705] = "燃刃塑能師",
		[4897] = "海倫妮亞·奧德恩",
		[9857] = "拍賣師格里茲林",
		[4961] = "達舍爾·石拳",
		[9985] = "拉茲弗斯",
		[10049] = "哈克魯",
		[5057] = "塞拉摩叛逃者",
		[5089] = "巴魯斯·加科因",
		[5121] = "凱洛米爾·鐵手",
		[10305] = "烏米·浪博史尼克",
		[10369] = "特萊耶克",
		[10433] = "馬杜克·布萊克波爾",
		[5249] = "混血木爪豺狼人",
		[5345] = "鑽石頭",
		[10817] = "杜甘·蠻錘",
		[5441] = "哈札里異種蠍",
		[5473] = "砂槌巨魔法師",
		[5505] = "塞瑞德蘭",
		[11073] = "安諾拉",
		[5569] = "菲斯巴恩·轟鳴",
		[5601] = "傑恩可汗",
		[5665] = "艾莉莎·布雷爾",
		[5697] = "泰瑞莎",
		[11457] = "荒野喚魔者",
		[5761] = "變異跛行者",
		[5857] = "灼熱熔岩蜘蛛",
		[11777] = "裂影巡遊者",
		[5953] = "剃刀嶺蠻兵",
		[5985] = "彎牙土狼",
		[12033] = "烏蘭",
		[12097] = "霜狼軍需官",
		[6113] = "維吉雷克",
		[6145] =


      ctx.ZoneGetter,
		backendPool:                        backendPool,
		namer:                              ctx.L4Namer,
		instancePool:                       ctx.InstancePool,
		igLinker:                           backends.NewRegionalInstanceGroupLinker(ctx.InstancePool, backendPool, logger),
		forwardingRules:                    forwardingrules.New(ctx.Cloud, meta.VersionGA, meta.Regional, logger),
		enableForwardingRulesOptimizations: ctx.EnableL4NetLBForwardingRulesOptimizations,
		enableDualStack:                    ctx.EnableL4NetLBDualStack,
		enableStrongSessionAffinity:        ctx.EnableL4StrongSessionAffinity,
		enableNEGSupport:                   ctx.EnableL4NetLBNEGs,
		enableNEGAsDefault:                 ctx.EnableL4NetLBNEGsDefault,
		serviceVersions:                    NewServiceVersionsTracker(),
		logger:                             logger,
		hasSynced:                          ctx.HasSynced,
	}
	var networkLister cache.Indexer
	if ctx.NetworkInformer != nil {
		networkLister = ctx.NetworkInformer.GetIndexer()
	}
	var gkeNetworkParamSetLister cache.Indexer
	if ctx.GKENetworkParamsInformer != nil {
		gkeNetworkParamSetLister = ctx.GKENetworkParamsInformer.GetIndexer()
	}
	// The following adapter will use Network Selflink as Network Url instead of the NetworkUrl itself.
	// Network Selflink is always composed by the network name even if the cluster was initialized with Network Id.
	// All the components created from it will be consistent and always use the Url with network name and not the url with netowork Id
	adapter, err := network.NewAdapterNetworkSelfLink(ctx.Cloud)
	if err != nil {
		logger.Error(err, "Failed to create network adapter with SelfLink")
		// if it was not possible to retrieve network information use standard context as cloud network provider
		adapter = ctx.Cloud
	}
	l4netLBc.networkResolver = network.NewNetworksResolver(networkLister, gkeNetworkParamSetLister, adapter, ctx.EnableMultinetworking, logger)
	l4netLBc.negLinker = backends.NewNEGLinker(l4netLBc.backendPool, negtypes.NewAdapter(ctx.Cloud, negmetrics.NewNegMetrics()), ctx.Cloud, ctx.SvcNegInformer.GetIndexer(), logger)
	l4netLBc.svcQueue = utils.NewPeriodicTaskQueueWithMultipleWorkers("l4netLB", "services", ctx.NumL4NetLBWorkers, l4netLBc.syncWrapper, logger)

	ctx.ServiceInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{
		AddFunc: func(obj interface{}) {
			addSvc := obj.(*v1.Service)
			svcKey := utils.ServiceKeyFunc(addSvc.Namespace, addSvc.Name)
			svcLogger := logger.WithValues("serviceKey", svcKey)
			if shouldProcess, _ := l4netLBc.shouldProcessService(addSvc, nil, svcLogger); shouldProcess {
				svcLogger.V(3).Info("L4 External LoadBalancer Service added, enqueuing")
				l4netLBc.ctx.Recorder(addSvc.Namespace).Eventf(addSvc, v1.EventTypeNormal, "ADD", svcKey)
				l4netLBc.serviceVersions.SetLastUpdateSeen(svcKey, addSvc.ResourceVersion, svcLogger)
				l4netLBc.svcQueue.Enqueue(addSvc)
				l4netLBc.enqueueTracker.Track()
			} else {
				svcLogger.V(4).Info("Ignoring add for non


// CHECK: vsubps (%rcx){1to8}, %ymm21, %ymm21
// CHECK:  encoding: [0x62,0xe1,0x54,0x30,0x5c,0x29]
          vsubps (%rcx){1to8}, %ymm21, %ymm21

// CHECK: vsubps 4064(%rdx), %ymm21, %ymm21
// CHECK:  encoding: [0x62,0xe1,0x54,0x20,0x5c,0x6a,0x7f]
          vsubps 4064(%rdx), %ymm21, %ymm21

// CHECK: vsubps 4096(%rdx), %ymm21, %ymm21
// CHECK:  encoding: [0x62,0xe1,0x54,0x20,0x5c,0xaa,0x00,0x10,0x00,0x00]
          vsubps 4096(%rdx), %ymm21, %ymm21

// CHECK: vsubps -4096(%rdx), %ymm21, %ymm21
// CHECK:  encoding: [0x62,0xe1,0x54,0x20,0x5c,0x6a,0x80]
          vsubps -4096(%rdx), %ymm21, %ymm21

// CHECK: vsubps -4128(%rdx), %ymm21, %ymm21
// CHECK:  encoding: [0x62,0xe1,0x54,0x20,0x5c,0xaa,0xe0,0xef,0xff,0xff]
          vsubps -4128(%rdx), %ymm21, %ymm21

// CHECK: vsubps 508(%rdx){1to8}, %ymm21, %ymm21
// CHECK:  encoding: [0x62,0xe1,0x54,0x30,0x5c,0x6a,0x7f]
          vsubps 508(%rdx){1to8}, %ymm21, %ymm21

// CHECK: vsubps 512(%rdx){1to8}, %ymm21, %ymm21
// CHECK:  encoding: [0x62,0xe1,0x54,0x30,0x5c,0xaa,0x00,0x02,0x00,0x00]
          vsubps 512(%rdx){1to8}, %ymm21, %ymm21

// CHECK: vsubps -512(%rdx){1to8}, %ymm21, %ymm21
// CHECK:  encoding: [0x62,0xe1,0x54,0x30,0x5c,0x6a,0x80]
          vsubps -512(%rdx){1to8}, %ymm21, %ymm21

// CHECK: vsubps -516(%rdx){1to8}, %ymm21, %ymm21
// CHECK:  encoding: [0x62,0xe1,0x54,0x30,0x5c,0xaa,0xfc,0xfd,0xff,0xff]
          vsubps -516(%rdx){1to8}, %ymm21, %ymm21

// CHECK: vmovapd %xmm22, (%rcx)
// CHECK:  encoding: [0x62,0xe1,0xfd,0x08,0x29,0x31]
          vmovapd %xmm22, (%rcx)

// CHECK: vmovapd %xmm22, (%rcx) {%k2}
// CHECK:  encoding: [0x62,0xe1,0xfd,0x0a,0x29,0x31]
          vmovapd %xmm22, (%rcx) {%k2}

// CHECK: vmovapd %xmm22, 291(%rax,%r14,8)
// CHECK:  encoding: [0x62,0xa1,0xfd,0x08,0x29,0xb4,0xf0,0x23,0x01,0x0


mer Soviet Republics",
    "HIS013000" => "History / Europe / France",
    "HIS014000" => "History / Europe / Germany",
    "HIS015000" => "History / Europe / Great Britain",
    "HIS016000" => "History / Historiography",
    "HIS017000" => "History / Asia / India & South Asia",
    "HIS018000" => "History / Europe / Ireland",
    "HIS019000" => "History / Middle East / Israel & Palestine",
    "HIS020000" => "History / Europe / Italy",
    "HIS021000" => "History / Asia / Japan",
    "HIS022000" => "History / Jewish",
    "HIS023000" => "History / Asia / Korea",
    "HIS024000" => "History / Latin America / General",
    "HIS025000" => "History / Latin America / Mexico",
    "HIS026000" => "History / Middle East / General",
    "HIS026010" => "History / Middle East / Arabian Peninsula",
    "HIS026020" => "History / Middle East / Iran",
    "HIS026030" => "History / Middle East / Iraq",
    "HIS027000" => "History / Military / General",
    "HIS027010" => "History / Military / Biological & Chemical Warfare",
    "HIS027020" => "History / Military / Korean War",
    "HIS027030" => "History / Military / Nuclear Warfare",
    "HIS027040" => "History / Military / Persian Gulf War (1991)",
    "HIS027050" => "History / Military / Pictorial",
    "HIS027060" => "History / Military / Strategy",
    "HIS027070" => "History / Military / Vietnam War",
    "HIS027080" => "History / Military / Weapons",
    "HIS027090" => "History / Military / World War I",
    "HIS027100" => "History / Military / World War II",
    "HIS027110" => "History / Military / United States",
    "HIS027120" => "History / Military / Veterans",
    "HIS027130" => "History / Military / Other",
    "HIS027140" => "History / Military / Aviation",
    "HIS027150" => "History / Military / Naval",
    "HIS027160" => "History / Military / Canada",
    "HIS027170" => "History / Military / Iraq War (2003-2011)",
    "HIS027180" => "History / Military / Special Forces",
    "HIS027190" => "History / Military / Afghan War (2001-)",
    "HIS028000" => "History / Native American",
    "HIS029000" => "History / North America",
    "HIS030000" => "History / Reference",
    "HIS031000" => "History / Revolutionary",
    "HIS032000" => "History / Europe / Russia & the Former Soviet Union",
    "HIS033000" => "History / Latin America / South America",
    "HIS035000" => "History / Study & Teaching",
    "HIS036000" => "History / United States / General",
    "HIS036010" => "History / United States / State & Local / General",
    "HIS036020" => "History / United States / Colonial Period (1600-1775)",
    "HIS036030" => "History / United States / Revolutionary Period (1775-1800)",
    "HIS036040" => "History / United States / 19th Century",
    "HIS036050" => "History / United States / Civil War Period (1850-1877)",
    "HIS036060" => "History / United States / 20th Century",
    "HIS036070" => "History / United States / 21st Century",
    "HIS036080" => "History / United States / State & Local / Middle Atlantic DC, DE, MD, NJ, NY, PA)",
    "HIS036090" => "History / United States / State & Local / Midwest (IA, IL, IN, KS,


609",
		"name": "Dummerston",
		"state_id": "3973"
	},
	{
		"id": "46610",
		"name": "East Corinth",
		"state_id": "3973"
	},
	{
		"id": "46611",
		"name": "East Fairfield",
		"state_id": "3973"
	},
	{
		"id": "46612",
		"name": "East Randolph",
		"state_id": "3973"
	},
	{
		"id": "46613",
		"name": "Essex",
		"state_id": "3973"
	},
	{
		"id": "46614",
		"name": "Essex Junction",
		"state_id": "3973"
	},
	{
		"id": "46615",
		"name": "Grand Isle",
		"state_id": "3973"
	},
	{
		"id": "46616",
		"name": "Hartford",
		"state_id": "3973"
	},
	{
		"id": "46617",
		"name": "Jericho",
		"state_id": "3973"
	},
	{
		"id": "46618",
		"name": "Manchester",
		"state_id": "3973"
	},
	{
		"id": "46619",
		"name": "Manchester Center",
		"state_id": "3973"
	},
	{
		"id": "46620",
		"name": "Middlebury",
		"state_id": "3973"
	},
	{
		"id": "46621",
		"name": "Milton",
		"state_id": "3973"
	},
	{
		"id": "46622",
		"name": "Montpelier",
		"state_id": "3973"
	},
	{
		"id": "46623",
		"name": "Putney",
		"state_id": "3973"
	},
	{
		"id": "46624",
		"name": "Randolph",
		"state_id": "3973"
	},
	{
		"id": "46625",
		"name": "Rochester",
		"state_id": "3973"
	},
	{
		"id": "46626",
		"name": "Rutland",
		"state_id": "3973"
	},
	{
		"id": "46627",
		"name": "Saint Albans",
		"state_id": "3973"
	},
	{
		"id": "46628",
		"name": "Saint Johnsbury",
		"state_id": "3973"
	},
	{
		"id": "46629",
		"name": "Saxtons River",
		"state_id": "3973"
	},
	{
		"id": "46630",
		"name": "South Burlington",
		"state_id": "3973"
	},
	{
		"id": "46631",
		"name": "South Strafford",
		"state_id": "3973"
	},
	{
		"id": "46632",
		"name": "Springfield",
		"state_id": "3973"
	},
	{
		"id": "46633",
		"name": "Townshend",
		"state_id": "3973"
	},
	{
		"id": "46634",
		"name": "Tunbridge",
		"state_id": "3973"
	},
	{
		"id": "46635",
		"name": "Van",
		"state_id": "3973"
	},
	{
		"id": "46636",
		"name": "Vernon",
		"state_id": "3973"
	},
	{
		"id":


text;
}

.pwc-tooltip .csl-entry {
  padding: 0;
}

.pwc-tooltips .cm-hmd-barelink {
  text-decoration: none;
}

.pwc-tooltips
  :not(a, .cm-hmd-internal-link, .cm-link-alias)
  > :is(.pandoc-citation, .at).is-resolved {
  color: var(--pwc-citation-color);
}

.pwc-tooltips
  :not(.cm-formatting-link)
  > .cm-pandoc-citation-formatting:not(.at) {
  color: var(--pwc-citation-formatting-color);
}

.pwc-tooltips
  :not(.cm-hmd-internal-link, .cm-link-alias)
  > .cm-pandoc-citation-extra {
  color: var(--pwc-citation-extra-color);
}

.pwc-tooltips :not(.cm-link-alias) > :is(.pandoc-citation, .at).is-resolved {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--pwc-citation-underline-color);
}

.pwc-tooltips
  :not(.cm-hmd-internal-link, .cm-link-alias)
  > :is(.pandoc-citation, .at).is-unresolved {
  text-decoration-color: var(--pwc-citation-underline-color-missing);
  opacity: 1;
}

.pwc-tooltips
  :not(.cm-hmd-internal-link, .cm-link-alias)
  > :is(.pandoc-citation, .at).is-unresolved {
  color: var(--pwc-citation-color-missing);
}

.pwc-tooltips
  :not(a, .cm-hmd-internal-link, .cm-link-alias)
  > :is(.pandoc-citation, .at).is-link {
  color: var(--link-color);
  cursor: var(--cursor-link);
}

.pandoc-citation > * {
  pointer-events: none;
}

.pwc-success {
  color: var(--interactive-success);
}

.pwc-error {
  color: var(--text-error);
}

.pwc-multiselect {
  width: 320px;
  text-align: left;
  font-size: var(--font-ui-small);
}

.pwc-multiselect input {
  outline: none !important;
  box-shadow: none !important;
  font-size: var(--font-ui-small);
  height: unset;
}

.pwc-setting-item-wrapper {
  flex-direction: column;
  align-items: stretch;
}

.pwc-setting-item-wrapper > div {
  margin-right: 0 !important;
}

.pwc-setting-item-wrapper > div:last-child {
  padding-bottom: 0;
}

.pwc-group-toggle {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--size-4-2);
}

.pwc-group-toggle .setting-item-description {
  padding-top: 0;
}

.pwc-suggest-title {
  font-size: var(--font-ui-small);
  color: var(--text-muted);


 axes[0].erp);
        dJointSetSliderParam(m_joint, dParamStopCFM, axes[0].cfm);
        dJointSetAMotorParam(m_joint1, dParamStopERP, axes[1].erp);
        dJointSetAMotorParam(m_joint1, dParamStopCFM, axes[1].cfm);
        break;
    }
}
void CPHJoint::SetAxisSDfactorsActive(int axis_num)
{
    LimitAxisNum(axis_num);

    switch (eType)
    {
    case hinge2:
        dJointSetHinge2Param(m_joint, dParamStopERP, axes[0].erp);
        dJointSetHinge2Param(m_joint, dParamStopCFM, axes[0].cfm);
        break;
    case ball: break;
    case hinge:
        dJointSetHingeParam(m_joint, dParamStopERP, axes[0].erp);
        dJointSetHingeParam(m_joint, dParamStopCFM, axes[0].cfm);
        break;
    case full_control:
        switch (axis_num)
        {
        case 0:
            dJointSetAMotorParam(m_joint1, dParamStopERP, axes[axis_num].erp);
            dJointSetAMotorParam(m_joint1, dParamStopCFM, axes[0].cfm);
            break;
        case 1:
            dJointSetAMotorParam(m_joint1, dParamStopERP2, axes[1].erp);
            dJointSetAMotorParam(m_joint1, dParamStopCFM2, axes[1].cfm);
            break;
        case 2:
            dJointSetAMotorParam(m_joint1, dParamStopERP3, axes[2].erp);
            dJointSetAMotorParam(m_joint1, dParamStopCFM3, axes[2].cfm);
            break;
        }
        break;
    case slider:
        switch (axis_num)
        {
        case 0: dJointSetSliderParam(m_joint, dParamStopERP, axes[0].erp); dJointSetSliderParam(m_joint, dParamStopCFM, axes[0].cfm);
        case 1: dJointSetAMotorParam(m_joint1, dParamStopERP, axes[1].erp); dJointSetAMotorParam(m_joint1, dParamStopCFM, axes[1].cfm);
        }
        break;
    }
}
void CPHJoint::GetJointSDfactors(float& spring_factor, float& damping_factor)
{
    spring_factor = SPRING(m_cfm, m_erp);
    damping_factor = DAMPING(m_cfm, m_erp);
    if (eType == hinge2)
    {
        spring_factor /= hinge2_spring;
        damping_factor /= hinge2_damping;
    }
    else
    {
        spring_factor /= world_spring;
        damping_factor /= world_damping;
    }
}
void CPHJoint::GetAxisSDfactors(float& spring_factor, float& damping_factor, int axis_num)
{
    LimitAxisNum(axis_num);
    spring_factor = SPRING(axes[axis_num].cfm, axes[axis_num].erp) / world_spring;
    damping_factor = DAMPING(axes[axis_num].cfm, axes[axis_num].erp) / world_damping;
}
u16 CPHJoint::GetAxesNumber() { return u16(axes.size()); }
void CPHJoint::CalcAxis(int ax_num, Fvector& axis, float& lo, float& hi, const Fmatrix& first_matrix, const Fmatrix& second_matrix, const Fmatrix& rotate)
{
    switch (axes[ax_num].vs)
    {
    case vs_first: first_matrix.transform_dir(axis, axes[ax_num].directio


>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#fff;text-align:center;background:#222;border:3px solid #fff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:.5;filter:alpha(opacity=50)}.carousel-control.right{right:15px;left:auto}.carousel-control:hover{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:15px;background:#333;background:rgba(0,0,0,0.75)}.carousel-caption h4,.carousel-caption p{line-height:20px;color:#fff}.carousel-caption h4{margin:0 0 5px}.carousel-caption p{margin-bottom:0}.hero-unit{padding:60px;margin-bottom:30px;font-size:18px;font-weight:200;line-height:30px;color:inherit;background-color:#eee;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;letter-spacing:-1px;color:inherit}.hero-unit li{line-height:30px}.pull-right{float:right}.pull-left{float:left}.hide{display:none}.show{display:block}.invisible{visibility:hidden}.affix{position:fixed}
@use "@material/theme" with (
  $primary: rgb(190, 108, 53)

);

@use "@material/banner/styles" as banner;
@use "@material/button/mdc-button";
@use "@material/card/mdc-card";
@use "@material/circular-progress/mdc-circular-progress";
@use "@material/checkbox/mdc-checkbox";
@use "@material/chips/styles" as chips;
@use "@material/data-table/mdc-data-table";
@use "@material/dialog/mdc-dialog";
@use "@material/drawer/mdc-drawer";
@use "@material/elevation/mdc-elevation";
@use "@material/fab/mdc-fab";
@use "@material/floating-label/mdc-floating-label";
@use "@material/form-field/mdc-form-field";
@use "@material/icon-button/mdc-icon-button";
@use "@material/image-list/mdc-image-list";
@use "@material/layout-grid/mdc-layout-grid";
@use "@material/line-ripple/mdc-line-ripple";
@use "@material/linear-progress/mdc-linear-progress";
@use "@material/menu/mdc-menu";
@use "@material/menu-surface/mdc-menu-surface";
@use "@material/notched-outline/mdc-notched-outline";
@use "@material/radio/mdc-radio";
@use "@material/ripple/mdc-ripple";
@use "@material/select/mdc-select";
@use "@material/segmented-button/styles" as segmentedButton;
@use "@material/slider/styles" as slider;
@use "@material/snackbar/mdc-snackbar";
@use "@material/switch/styles" as switch;
@use "@material/tab/mdc-tab";
@use "@material/tab-bar/mdc-tab-bar";
@use "@material/tab-indicator/mdc-t


	"reklam.hu",
	"sex.hu",
	"shop.hu",
	"sport.hu",
	"suli.hu",
	"szex.hu",
	"tm.hu",
	"tozsde.hu",
	"utazas.hu",
	"video.hu",
	"id",
	"ac.id",
	"biz.id",
	"co.id",
	"desa.id",
	"go.id",
	"mil.id",
	"my.id",
	"net.id",
	"or.id",
	"ponpes.id",
	"sch.id",
	"web.id",
	"ie",
	"gov.ie",
	"il",
	"ac.il",
	"co.il",
	"gov.il",
	"idf.il",
	"k12.il",
	"muni.il",
	"net.il",
	"org.il",
	"xn--4dbrk0ce",
	"xn--4dbgdty6c.xn--4dbrk0ce",
	"xn--5dbhl8d.xn--4dbrk0ce",
	"xn--8dbq2a.xn--4dbrk0ce",
	"xn--hebda8b.xn--4dbrk0ce",
	"im",
	"ac.im",
	"co.im",
	"ltd.co.im",
	"plc.co.im",
	"com.im",
	"net.im",
	"org.im",
	"tt.im",
	"tv.im",
	"in",
	"5g.in",
	"6g.in",
	"ac.in",
	"ai.in",
	"am.in",
	"bihar.in",
	"biz.in",
	"business.in",
	"ca.in",
	"cn.in",
	"co.in",
	"com.in",
	"coop.in",
	"cs.in",
	"delhi.in",
	"dr.in",
	"edu.in",
	"er.in",
	"firm.in",
	"gen.in",
	"gov.in",
	"gujarat.in",
	"ind.in",
	"info.in",
	"int.in",
	"internet.in",
	"io.in",
	"me.in",
	"mil.in",
	"net.in",
	"nic.in",
	"org.in",
	"pg.in",
	"post.in",
	"pro.in",
	"res.in",
	"travel.in",
	"tv.in",
	"uk.in",
	"up.in",
	"us.in",
	"info",
	"int",
	"eu.int",
	"io",
	"co.io",
	"com.io",
	"edu.io",
	"gov.io",
	"mil.io",
	"net.io",
	"nom.io",
	"org.io",
	"iq",
	"com.iq",
	"edu.iq",
	"gov.iq",
	"mil.iq",
	"net.iq",
	"org.iq",
	"ir",
	"ac.ir",
	"co.ir",
	"gov.ir",
	"id.ir",
	"net.ir",
	"org.ir",
	"sch.ir",
	"xn--mgba3a4f16a.ir",
	"xn--mgba3a4fra.ir",
	"is",
	"it",
	"edu.it",
	"gov.it",
	"abr.it",
	"abruzzo.it",
	"aosta-valley.it",
	"aostavalley.it",
	"bas.it",
	"basilicata.it",
	"cal.it",
	"calabria.it",
	"cam.it",
	"campania.it",
	"emilia-romagna.it",
	"emili


     h2 = self.src_trg_att(memory1, memory1, h1_norm, mask=src_mask1)
        # print('h2:',h2)

        h3 = self.src_trg_att(memory2, memory2, h1_norm, mask=src_mask2)

        h4 = self.src_trg_att(memory3, memory3, h1_norm, mask=src_mask3)
        # final position-wise feed-forward layer

        o = self.feed_forward(self.dropout(h2) +self.dropout(h3) + self.dropout(h4) + h1)
        # o = self.feed_forward(self.dropout(h2) + self.dropout(h3) + h1)
        # o = self.feed_forward(self.dropout(h3) + self.dropout(h4) + h1)
        # o = self.feed_forward(self.dropout(h3) +  h2)

        return o


 let VaultResponseMessage::SecretImport(s) = resp {
            Ok(s)
        } else {
            Err(VaultSyncCoreError::InvalidResponseType.into())
        }
    }

    async fn secret_export(&mut self, context: &Secret) -> Result<SecretKey> {
        let resp = self
            .call(VaultRequestMessage::SecretExport {
                context: context.clone(),
            })
            .await?;

        if let VaultResponseMessage::SecretExport(s) = resp {
            Ok(s)
        } else {
            Err(VaultSyncCoreError::InvalidResponseType.into())
        }
    }

    async fn secret_attributes_get(&mut self, context: &Secret) -> Result<SecretAttributes> {
        let resp = self
            .call(VaultRequestMessage::SecretAttributesGet {
                context: context.clone(),
            })
            .await?;

        if let VaultResponseMessage::SecretAttributesGet(s) = resp {
            Ok(s)
        } else {
            Err(VaultSyncCoreError::InvalidResponseType.into())
        }
    }

    async fn secret_public_key_get(&mut self, context: &Secret) -> Result<PublicKey> {
        let resp = self
            .call(VaultRequestMessage::SecretPublicKeyGet {
                context: context.clone(),
            })
            .await?;

        if let VaultResponseMessage::SecretPublicKeyGet(s) = resp {
            Ok(s)
        } else {
            Err(VaultSyncCoreError::InvalidResponseType.into())
        }
    }

    async fn secret_destroy(&mut self, context: Secret) -> Result<()> {
        let resp = self
            .call(VaultRequestMessage::SecretDestroy {
                context: context.clone(),
            })
            .await?;

        if let VaultResponseMessage::SecretDestroy = resp {
            Ok(())
        } else {
            Err(VaultSyncCoreError::InvalidResponseType.into())
        }
    }
}

#[cfg(test)]
mod tests {
    use ockam_vault::SoftwareVault;

    fn new_vault() -> SoftwareVault {
        SoftwareVault::default()
    }

    #[ockam_macros::vault_test_sync]
    fn new_public_keys() {}

    #[ockam_macros::vault_test_sync]
    fn new_secret_keys() {}

    #[ockam_macros::vault_test_sync]
    fn secret_import_export() {}

    #[ockam_macros::vault_test_sync]
    fn secret_attributes_get() {}
}
<reponame>curiousleo/rust<filename>examples/ping/src/main.rs<gh_stars>0
use std::env;
use std::io::{BufRead, Read, Write};
use std::process::exit;
use std::sync::{Arc, RwLock};

use varlink::{Call, Connection, VarlinkService};

use crate::org_example_ping::*;

// Dynamically build the varlink rust code.
mod org_example_ping;

#[cfg(test)]
mod test;

// Main

fn print_usage(program: &str, opts: &getopts::Options) {
    let brief = format!("Usage: {} [--varlink=<address>] [--client]", program);
    print!("{}", opts.usage(&brief));
}

fn main() {
    let args: Vec<_> = env::args().collect();
    let program = args[0].clone();

    let mut opts = getopts::Options::new();
    opts.optopt("", "varlink", "varlink address URL", "<address>");
    opts.optflag("", "client", "run in client mode");
    opts.optopt("", "bridge", "bridge", "<bridge>");
    opts.optflag("m", "multiplex", "run in multiplex mode");
    opts.optopt("t", "timeout", "server timeout", "<seconds>");
    opts.optflag("h", "help", "print this help menu")


m::vec2(-2359.08f, -1757.9f), glm::vec2(-2338.22f, -1728.2f)}},
            {"MainField_Npc_HiddenKorokGround_4128059100", {glm::vec2(3079.72f, 3643.24f), glm::vec2(3093.29f, 3659.51f), glm::vec2(3082.66f, 3705.24f), glm::vec2(3061.24f, 3658.99f), glm::vec2(3027.25f, 3653.85f)}},
            {"MainField_Npc_HiddenKorokGround_2229769454", {glm::vec2(-4349.5f, 1828.01f), glm::vec2(-4345.34f, 1832.49f), glm::vec2(-4353.39f, 1834.54f), glm::vec2(-4352.04f, 1826.04f), glm::vec2(-4353.39f, 1837.03f)}},
            {"MainField_Npc_HiddenKorokGround_884157545", {glm::vec2(1737.64f, 3204.04f), glm::vec2(1754.08f, 3198.55f), glm::vec2(1766.46f, 3195.1f), glm::vec2(1788.81f, 3210.6f), glm::vec2(1803.67f, 3220.17f)}},
            {"MainField_Npc_HiddenKorokGround_3336956392", {glm::vec2(2947.57f, 3003.18f), glm::vec2(2952.04f, 2989.74f), glm::vec2(2962.11f, 2982.25f), glm::vec2(2955.57f, 2973.68f), glm::vec2(2950.32f, 2965.55f), glm::vec2(2967.16f, 2948.4f), glm::vec2(2968.22f, 2965.22f), glm::vec2(2972.14f, 2975.83f), glm::vec2(2974.78f, 2989.42f), glm::vec2(2951.52f, 3003.33f)}},
            {"MainField_Npc_HiddenKorokGround_3143270869", {glm::vec2(-4171.26f, 3058.97f), glm::vec2(-4174.61f, 3065.55f), glm::vec2(-4186.84f, 3064.5f), glm::vec2(-4190.1f, 3083.78f), glm::vec2(-4195.16f, 3090.17f)}},
            {"MainField_Npc_HiddenKorokGround_1845056285", {glm::vec2(4594.88f, 2520.45f), glm::vec2(4622.89f, 2470.21f), glm::vec2(4632.42f, 2436.13f), glm::vec2(4651.31f, 2412.54f), glm::vec2(4658.92f, 2379.92f)}},
            {"MainField_Npc_HiddenKorokGround_3288214517", {glm::vec2(981.38f, 1837.23f), glm::vec2(995.8f, 1836.55f), glm::vec2(1006.34f, 1828.51f), glm::vec2(1033.92f, 1807.87f), glm::vec2(1047.49f, 1786.98f)}},
            {"MainField_Npc_HiddenKorokGround_4221382154", {glm::vec2(-209.34f, 3444.94f), glm::vec2(-210.17f, 3399.51f), glm::vec2(-205.12f, 3370.46f), glm::vec2(-217


}
global.rpg = {
  role(level) {
    level = parseInt(level);
    if (isNaN(level)) return "";

    const roles = [
      { name: "𝙽𝚄𝙴𝚅𝙾", level: 0 },
      { name: "𝙿𝙴𝚀𝚄𝙴Ñ𝙾", level: 5 }, //»»————⍟——««\n
      { name: "𝙰𝚅𝙰𝙽𝚉𝙰𝙳𝙾", level: 10 },
      { name: "𝙴𝚇𝙿𝙴𝚁𝚃𝙾", level: 15 },
      { name: "🐬 𝙴𝚇𝙿𝙴𝚁𝚃𝙾 𝙴𝙽 𝙳𝙾𝙿𝙻𝙸𝙽", level: 20 },
      { name: "🥷 𝙳𝙾𝙼𝙰𝙳𝙾𝚁", level: 25 }, //𐏓・,〔𒁷, 𒆜〢
      { name: "⚔ 𝙴𝙻 𝙲𝙰𝚁𝚁𝚈", level: 30 },
      { name: "👑 𝙻𝙸𝙳𝙴𝚁 𝙴𝚇𝙿𝙴𝚁𝙾 𝙴𝙽 𝚁𝙴𝙼", level: 35 },
      { name: "🪼 𝙴𝚇𝙿𝙴𝚁𝚃𝙾 𝙴𝙽 𝙼𝙰𝚁𝙴𝚂", level: 40 },
      { name: "🐍 𝙲𝚁𝙴𝙰𝙳𝙾𝚁 𝙳𝙴 𝙿𝙻𝚄𝚃𝙾𝙽", level: 45 },
      { name: "👹 𝙲𝚁𝙴𝙰𝙳𝙾𝚁 𝙳𝙴 𝙼𝙴𝚁𝙲𝚄𝚁𝙸𝙾", level: 50 },
      { name: "🧙♂ 𝙼𝙰𝙽𝙾 𝙳𝙴𝚁𝙴𝙲𝙷𝙰 𝙳𝙴𝙻 𝙾𝚆𝙽𝙴𝚁", level: 60 },
      { name: "🧝♂ 𝙲𝚁𝙴𝙰𝙳𝙾𝚁 𝙳𝙴 𝚅𝙴𝙽𝚄𝚂", level: 70 },
      { name: "🐲 𝙲𝚁𝙴𝙰𝙳𝙾𝚁 𝙳𝙴 𝙽𝙴𝙿𝚃𝚄𝙽𝙾", level: 80 },
      { name: "🔮 𝙲𝚁𝙴𝙰𝙳𝙾𝚁 𝙳𝙴 𝚂𝙰𝚃𝚄𝚁𝙽𝙾 🔮", level: 90 },
      { name: "🔱 𝙾𝚆𝙽𝙴𝚁 𝙿𝙴𝚀𝚄𝙴Ñ𝙾 🔱", level: 100 },
    ];

    const role = roles.reverse().find((role) => level >= role.level);
    return role ? role.name : "";
  },
};
import fetch from 'node-fetch';

let handler = async (m, { conn, text, usedPrefix, command }) => {
  if (!text && !(m.quoted && m.quoted.text)) {
    throw `𝙋𝙤𝙧 𝙛𝙖𝙫𝙤𝙧 𝙥𝙧𝙤𝙥𝙤𝙧𝙘𝙞𝙤𝙣𝙚 𝙖𝙡𝙜ú𝙣 𝙩𝙚𝙭𝙩𝙤 , 𝙀𝙟𝙚𝙢𝙥𝙡𝙤 𝙙𝙚 𝙪𝙨𝙤 ${usedPrefix}img Anime`;
  }
  if (!text && m.quoted && m.quoted.text) {
    text = m.quoted.text;
  }

  const match = text.match(/(\d+)/);
  const numberOfImages = match ? parseInt(match[1]) : 1;

  try {
    m.reply('*Por Favor Espera*');

    const im


 has been for a long while - since we assume
				// the VM Image will always point to a ContentLibrary item.
				// Hack around that with this knob so we can continue to test the VM clone path.
				vsphere.SkipVMImageCLProviderCheck = true

				// Use the default VM created by vcsim as the source.
				clusterVMImage = builder.DummyClusterVirtualMachineImage("DC0_C0_RP0_VM0")
				Expect(ctx.Client.Create(ctx, clusterVMImage)).To(Succeed())
				conditions.MarkTrue(clusterVMImage, vmopv1.ReadyConditionType)
				Expect(ctx.Client.Status().Update(ctx, clusterVMImage)).To(Succeed())
			}

			vm.Namespace = nsInfo.Namespace
			vm.Spec.ClassName = vmClass.Name
			vm.Spec.ImageName = clusterVMImage.Name
			vm.Spec.Image.Kind = cvmiKind
			vm.Spec.Image.Name = clusterVMImage.Name
			vm.Spec.StorageClass = ctx.StorageClassName

			Expect(ctx.Client.Create(ctx, vm)).To(Succeed())
		})

		AfterEach(func() {
			vsphere.SkipVMImageCLProviderCheck = false
		})

		Context("VM Class and ConfigSpec", func() {

			var (
				vcVM       *object.VirtualMachine
				configSpec *vimtypes.VirtualMachineConfigSpec
				ethCard    vimtypes.VirtualEthernetCard
			)

			BeforeEach(func() {
				testConfig.WithNetworkEnv = builder.NetworkEnvNamed

				ethCard = vimtypes.VirtualEthernetCard{
					VirtualDevice: vimtypes.VirtualDevice{
						Key: 4000,
						DeviceInfo: &vimtypes.Description{
							Label:   "test-configspec-nic-label",
							Summary: "VM Network",
						},
						SlotInfo: &vimtypes.VirtualDevicePciBusSlotInfo{
							VirtualDeviceBusSlotInfo: vimtypes.VirtualDeviceBusSlotInfo{},
							PciSlotNumber:            32,
						},
						ControllerKey: 100,
					},
					AddressType: string(vimtypes.VirtualEthernetCardMacTypeManual),
					MacAddress:  "00:0c:29:93:d7:27",
					ResourceAllocation: &vimtypes.VirtualEthernetCardResourceAllocation{
						Reservation: ptr.To[int64](42),
					},
				}
			})

			JustBeforeEach(func() {
				if configSpec != nil {
					var w bytes.Buffer
					enc := vimtypes.NewJSONEncoder(&w)
					Expect(enc.Encode(configSpec)).To(Succeed())

					// Update the VM Class with the XML.
					vmClass.Spec.ConfigSpec = w.Bytes()
					Expect(ctx.Client.Update(ctx, vmClass)).To(Succeed())
				}

				vm.Spec.Network.Disabled = false
				vm.Spec.Network.Interfaces = []vmopv1.VirtualMachineNetworkInterfaceSpec{
					{
						Name:    "eth0",
						Network: &vmopv1common.PartialObjectRef{Name: dvpgName},
					},
				}

				if !skipCreateOrUpdateVM {
					var err error
					vcVM, err = createOrUpdateAndGetVcVM(ctx, vmProvider, vm)
					Expect(err).ToNot(HaveOccurred())
				}
			})

			AfterEach(func() {
				vcVM = nil
				configSpec = nil
			})

			Context("FSS_WCP_MOBILITY_VM_IMPORT_NEW_NET", func() {
				var instanceUUID string

				BeforeEach(func() {
					skipCreateOrUpdateVM = true
				})

				JustBeforeEach(func() {
					vmList, err := ctx.Finder.VirtualMachineList(ctx, "*")
					Expect(err).ToNot(HaveOccurred())
					Expect(vmList).ToNot(BeEmpty())

					vcVM = vmList[0]
					var o mo.VirtualMachine
					Expect(vc


    var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
        /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
        /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
        /(msie)[\s?]([\w.]+)/.exec( ua ) ||
        /(trident)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
        ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
        [];

    return {
        browser: match[ 1 ] || "",
        version: match[ 2 ] || "0"
    };
};

matched = jQuery.uaMatch( navigator.userAgent );
//IE 11+ fix (Trident)
matched.browser = matched.browser == 'trident' ? 'msie' : matched.browser;
browser = {};

if ( matched.browser ) {
    browser[ matched.browser ] = true;
    browser.version = matched.version;
}

// Chrome is Webkit, but Webkit is also Safari.
if ( browser.chrome ) {
    browser.webkit = true;
} else if ( browser.webkit ) {
    browser.safari = true;
}

jQuery.browser = browser;JPopup = {
    tokenName : "",
    tokenValue : "",
    dialogboxes : new Object(),
    isChanges : new Object(),
    msg : "Changes that you made may not be saved. Please click 'Cancel' button to stay or click 'OK' button to leave.",

    create: function (id, title, width, height) {
        if (JPopup.dialogboxes[id] === undefined || JPopup.dialogboxes[id] === null) {
            if($("#"+id).length == 0){
                var newWidth = UI.getPopUpWidth(width);
                var newHeight = UI.getPopUpHeight(height);

                if (!title || title === "") {
                    title = " ";
                }
                var isIphone = false;
                if (/iPhone|iPod|iPad/.test(navigator.userAgent)) {
                    isIphone = true;
                }
                JPopup.dialogboxes[id] = new Boxy('<iframe onload="JPopup.trackChanges(\''+id+'\')" id="'+id+'" name="'+id+'" src="'+UI.base+'/images/v3/cj.gif" style="frameborder:0;height:'+newHeight+'px;width:'+newWidth+'px;"></iframe>', {title:title,closeable:true,draggable:isIphone,show:false,fixed: !JPopup.isMobileAndTablet(), modal:true});

                JPopup.dialogboxes[id].options.afterHide = function() {
                    try {
                        if (parent && parent.UI !== undefined && window.frameElement !== null) {
                            parent.UI.restoreIframe(window.frameElement.id);
                            $("html").css("background", "transparent");
                        }
                    } catch (err) {}
                };

                JPopup.dialogboxes[id].orgHide = JPopup.dialogboxes[id].hide;
                JPopup.dialogboxes[id].hide = function(after) {
                    JPopup.hide(id, true, after);
                };
            } else {
                JPopup.dialogboxes[id] = Boxy.get($("#"+id));
            }
        }
    },

    show : function (id, url, params, title, width, height, action) {
        try {
            if (parent && parent.UI !== undefined && window.frameElement !== null) {
                $("html").css("background", "#fff");
                parent.UI.maxIframe(window.frameElement.id);
            }
        } catch (err) {}

        if ($('iframe#' + id).length === 0 && JPopup.dialogboxes[id] !== undefined && JPopup.dialogboxes[id] !== null) {
            delete JPopup.dialogboxes[id];
        }

        if (JPopup.dialogboxes[id] === undefined || JPopup.dialogboxes[id] === null


).offsetHeight;
        let dH = e.movementY;
        (<HTMLElement>div).style.height = currentHeiht + dH - 12 + 'px';
    }

    document.querySelector('.undo').addEventListener('click', function(e:Event){
        alert('dfg');
        document.execCommand('undo');
    }.bind(this));

    resizer.addEventListener('mousedown', function(e:Event) {
        document.querySelector('body').addEventListener('mousemove', resize);
        document.querySelector('body').addEventListener('mouseup', function(e:Event) {
            document.querySelector('body').removeEventListener('mousemove', resize);
        });
    });

    let brTag:TWrapper = {
        elName: 'br',
        className: '',
        bbCode: '/br',
        child: null,
    };
    editor.addWraper(brTag);

    let boldButtonEl = document.querySelector('.toolbar .bold');
    let boldTag:TWrapper = {
        elName: 'b',
        className: '',
        bbCode: 'b',
        child: null,
    };
    let boldButton = new WrapperButton(boldButtonEl, boldTag);

    let italicButtonEl = document.querySelector('.toolbar .italic');
    let italicTag:TWrapper = {
        elName: 'i',
        className: '',
        bbCode: 'i',
        child: null,
    };
    let italicButton = new WrapperButton(italicButtonEl, italicTag);

    let underlineButtonEl = document.querySelector('.toolbar .underline');
    let ulButtonEl = document.querySelector('.toolbar .ul');
    let underlineTag:TWrapper = {
        elName: 'u',
        className: '',
        bbCode: 'u',
        child: null,
    };
    let underlineButton = new WrapperButton(underlineButtonEl, underlineTag);

    let ulTag:TWrapper = {
        elName: 'ul',
        className: 'ul',
        bbCode: 'ul',
        child: {
            elName: 'li',
            className: '',
            bbCode: 'li',
            child: null,
        },
    }
    let ulButton = new InsertUl(ulButtonEl, ulTag);
    editor.addButton(boldButton);
    editor.addButton(italicButton);
    editor.addButton(underlineButton);
    editor.addButton(ulButton);
    let keyListener = new KeyListener();
    editor.addKeyListener(13, keyListener);

    // let el = document.createElement('p');
    // let txt = document.createTextNode('\uFEFF');
    // el.appendChild(txt);

    // div.appendChild(el);

    let toStringButton = document.querySelector('.tostring');
    toStringButton.addEventListener('click', function(e:Event){
        e.preventDefault();
        editor.stringToContent('12[/br][/br]56');
        //console.log(editor.contentToString(div));
        //div.innerHTML = '';
    })
})import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-prueba',
  templateUrl: './prueba.component.html',
  styleUrls: ['./prueba.component.css']
})
export class PruebaComponent implements OnInit {

  pruebaMayus1: string;
  pruebaMayus2: string;
  inputMayus2: string;

  fechaConexion1: Date;
  fechaConexion2: Date;
  fechaConexion3: Date;
  fechaConexion4: Date;


in->data, string2str(found->domain), string_strlen(found->domain) + 1);
            dst_domain->used = string_strlen(found->domain) + 1;
        }
        else
            txt_utf8_empty(dst_domain);

        if (found->sid_str) {
            txt_utf8_resize(dst_sid_str, string_strlen(found->sid_str) + 1, false);
            memcpy(dst_sid_str->data, string2str(found->sid_str), string_strlen(found->sid_str) + 1);
            dst_sid_str->used = string_strlen(found->sid_str) + 1;
        }
        else
            txt_utf8_empty(dst_sid_str);

        return true;
    }

    txt_utf8_empty(dst_account);
    txt_utf8_empty(dst_domain);
    txt_utf8_empty(dst_sid_str);
    return false;
}

bool cached_sid_to_buffer_append(PSID sid, BUFFER *dst, const char *prefix) {
    SID_VALUE *found = lookup_or_convert_user_id_to_name_lookup(sid);
    size_t added = 0;

    if(found) {
        if (found->full) {
            if (prefix && *prefix)
                buffer_strcat(dst, prefix);

            buffer_fast_strcat(dst, string2str(found->full), string_strlen(found->full));
            added++;
        }
        if (found->sid_str) {
            if (prefix && *prefix)
                buffer_strcat(dst, prefix);

            buffer_fast_strcat(dst, string2str(found->sid_str), string_strlen(found->sid_str));
            added++;
        }
    }

    return added > 0;
}

STRING *cached_sid_fullname_or_sid_str(PSID sid) {
    SID_VALUE *found = lookup_or_convert_user_id_to_name_lookup(sid);
    if(found) {
        if(found->full) return string_dup(found->full);
        return string_dup(found->sid_str);
    }
    return NULL;
}

#endif


es[&super_id].vtable, module.types.long),
                        module.const_long(8).ptr()
                    ),
                    module.types.int,
                    0
                )
            }).collect_vec();
            let supers_val = LLVMConstArray(module.types.int, supers.as_mut_ptr(), supers.len() as u32);

            let supers_global = LLVMAddGlobal(module.module.ptr(), LLVMArrayType(module.types.int, supers.len() as u32), supers_name.as_ptr());
            LLVMSetInitializer(supers_global, supers_val);
            supers_global
        },
        class_obj,
        if ty.itable.is_null() {
            LLVMConstNull(LLVMStructGetTypeAtIndex(LLVMGlobalGetValueType(ty.vtable), VTABLE_ITABLE_FIELD as u32))
        } else {
            ty.itable
        }
    ]
        .iter().cloned()
        .chain(vslots)
        .collect_vec();

    let vtable_value = LLVMConstStruct(vtable_fields.as_mut_ptr(), vtable_fields.len() as u32, 0);
    LLVMSetInitializer(ty.vtable, vtable_value);
}

pub(super) fn emit_vtables(module: &mut MochaModule, liveness: &LivenessInfo) {
    for class_id in liveness.needs_class_object.iter().cloned() {
        unsafe {
            emit_itable(module, class_id);
            emit_vtable(module, class_id, liveness);
        };
    };
}

unsafe fn value_to_llvm(module: &MochaModule, val: Value, class_id: ClassId) -> LLVMValueRef {
    match class_id {
        ClassId::PRIMITIVE_BYTE => module.const_byte(val.as_int().unwrap() as i8).ptr(),
        ClassId::PRIMITIVE_CHAR => module.const_short(val.as_int().unwrap() as i16).ptr(),
        ClassId::PRIMITIVE_DOUBLE => module.const_double(val.as_double().unwrap()).ptr(),
        ClassId::PRIMITIVE_FLOAT => module.const_float(val.as_float().unwrap()).ptr(),
        ClassId::PRIMITIVE_INT => module.const_int(val.as_int().unwrap()).ptr(),
        ClassId::PRIMITIVE_LONG => module.const_long(val.as_long().unwrap()).ptr(),
        ClassId::PRIMITIVE_SHORT => module.const_short(val.as_int().unwrap() as i16).ptr(),
        ClassId::PRIMITIVE_BOOLEAN => module.const_byte(val.as_int().unwrap() as i8).ptr(),
        _ => val.as_ref().unwrap().map_or_else(
            || LLVMConstNull(module.types.class_types[&class_id].field_ty),
            |r| LLVMConstPointerCast(module.obj_map[&r.as_ptr()].ptr(), module.types.class_types[&class_id].field_ty)
        )
    }
}

unsafe fn define_static_heap_object<'a>(module: &MochaModule, name: &CString, obj: &JavaStaticRef<'a>) -> LLVMValueRef {
    let ty = if obj.class_id() == ClassId::JAVA_LANG_CLASS {
        module.types.class_types[&ClassId(
            obj.read_field(JAVA_LANG_CLASS_VTABLE_PTR_FIELD).as_int().unwrap() as u32
        )].meta_ty
    } else {
        match **module.env.get(obj.class_id()) {
            ResolvedClass::Array(elem_class) => {
                let mut fields = [
                    module.types.class_types[&obj.class_id()].value_ty,
                    LLVMArrayType(
                        module.types.class_types[&elem_class].field_ty,
                        obj.read_array_length() as u32
                    )
                ];

                LLVMStructType(fields.as_


--[[
   Copyright (c) The OpenRA Combined Arms Developers (see CREDITS).
   This file is part of OpenRA Combined Arms, which is free software.
   It is made available to you under the terms of the GNU General Public License
   as published by the Free Software Foundation, either version 3 of the License,
   or (at your option) any later version. For more information, see COPYING.
]]

Difficulty = Map.LobbyOptionOrDefault("difficulty", "normal")
GameSpeed = UtilsCA.GameSpeed()

StructureBuildTimeMultipliers = {
	easy = 3,
	normal = 2,
	hard = 1.1,
	vhard = 0.9,
	brutal = 0.8
}

McvRebuildDelay = {
	hard = DateTime.Minutes(8),
	vhard = DateTime.Minutes(5),
	brutal = DateTime.Minutes(3),
}

UnitBuildTimeMultipliers = {
	easy = 1.25, -- 2000 value/min per queue (33/s)
	normal = 0.81, -- 3086 value/min per queue (51/s)
	hard = 0.6, -- 4166 value/min per queue (69/s)
	vhard = 0.45, -- 5555 value/min per queue (92/s)
	brutal = 0.35 -- 7142 value/min per queue (119/s)
}

AttackValueMultipliers = {
	easy = 0.5,
	normal = 1, -- standard min 40/s, max 80/s
	hard = 1.5,
	vhard = 2,
	brutal = 2.5
}

NormalRampDuration = DateTime.Minutes(17)

RampDurationMultipliers = {
	easy = 1.06, -- 18 min
	normal = 1, -- 17 min
	hard = 0.94, -- 16 min
	vhard = 0.88, -- 15 min
	brutal = 0.82 -- 14 min
}

AttackDelayMultipliers = {
	easy = 1.5,
	normal = 1,
	hard = 0.83,
	vhard = 0.66,
	brutal = 0.5
}

AirAttackDelayMultipliers = {
	easy = 1.11,
	normal = 1,
	hard = 0.88,
	vhard = 0.77,
	brutal = 0.66
}

CompositionValueMultiplier = {
	easy = 0.5,
	normal = 0.67,
	hard = 0.83,
	vhard = 1,
	brutal = 1.2
}

HarvesterDeathDelayTime = {
	easy = DateTime.Seconds(60),
	normal = DateTime.Seconds(40),
	hard = DateTime.Seconds(20),
	vhard = DateTime.Seconds(20),
	brutal = DateTime.Seconds(20)
}

AiAdvancedUpgradeDelay = {
	easy = DateTime.Minutes(15),
	normal = DateTime.Minutes(15),
	hard = DateTime.Minutes(15),
	vhard = DateTime.Minutes(14),
	brutal = DateTime.Minutes(13)
}

CashAdjustments = {
	easy = 4000,
	normal = 0,
	hard = -1000,
	vhard = -1000,
	brutal = -1000
}

CapturedCreditsAmount = 1250

EnforceAiBuildRadius = false

ConyardTypes = { "fact", "afac", "sfac" }

HarvesterTypes = { "harv", "harv.td", "harv.td.upg", "harv.scrin", "harv.chrono", "harv.td.upg" }

McvTypes = { "mcv", "amcv", "smcv" }

BarracksTypes = { "tent", "barr", "pyle", "hand", "port" }

FactoryTypes = { "weap", "weap.td", "wsph", "airs" }

RefineryTypes = { "proc", "proc.td", "proc.scrin" }

AirProductionTypes = { "hpad", "afld", "afld.gdi", "hpad.td", "grav" }

NavalProductionTypes = { "syrd", "spen", "syrd.gdi", "spen.nod" }

CashRewardOnCaptureTypes = { "proc", "proc.td", "proc.scrin", "silo", "silo.td", "silo.scrin" }

WallTypes = { "sbag", "fenc", "brik", "cycl", "barb" }

KeyStructures = { "fact", "afac", "sfac", "proc", "proc.td", "proc.scrin", "weap",


盾",
[55881] = "浮躁存疑",
[55882] = "綠洲護腕",
[55883] = "黎沙莉的剃刃",
[55884] = "幻象戒指",
[55885] = "唐威克「最棒」的長袍",
[55886] = "毒牙護腕",
[55887] = "石化之淚腰帶",
[55888] = "暗吼護符",
[55889] = "安胡爾的詩集",
[55890] = "覺醒之足音",
[55891] = "俯尾護肩",
[55892] = "羽織護腿",
[55893] = "爪撕踏靴",
[55894] = "輕羽護腿",
[55895] = "收貨人的墊甲護手",
[55896] = "紋飾束腰",
[55897] = "石鑿頭盔",
[55898] = "岩攫粉碎手套",
[55899] = "鞭刺腕甲",
[55900] = "刺縛肩甲",
[55901] = "荒毛頭盔",
[55902] = "科多獸牧人面罩",
[55903] = "生鏽的套索",
[55904] = "鎮定者",
[55905] = "脊鱗長弓",
[55906] = "溫暖適意裹手",
[55907] = "流水外衣",
[55908] = "脆裂束腰",
[55909] = "半人馬夢境披氅",
[55910] = "不屈螺旋肩衛",
[55911] = "執拗腿甲",
[55912] = "精工儀禮匕首",
[55913] = "特使的護軀",
[55914] = "沉默薄靴",
[55915] = "亞勾格里敦彎劍",
[55916] = "魂星釘錘",
[55917] = "科卡爾斬斧",
[55918] = "強風峽谷護腿",
[55919] = "崎嶇纏手",
[55920] = "澤織者腕甲",
[55921] = "強風峽谷護腿",
[55922] = "崎嶇纏手",
[55923] = "沼織者腕甲",
[55924] = "猛力阻斷戒指",
[55925] = "根基項圈",
[55926] = "焦顱披風",
[55927] = "猛力阻斷戒指",
[55928] = "根基項圈",
[55929] = "焦顱披風",
[55930] = "黑血匕首",
[55931] = "惡魔殺手面具",
[55932] = "爪痕壁壘",
[55933] = "黑血匕首",
[55934] = "惡魔殺手面具",
[55935] = "爪痕壁壘",
[55936] = "束縛法杖",
[55937] = "傳送�


e an argument
    if(args.length >= 3) {
        env = args[2]
    }

    return env
}

module.exports = {
    deleteFolderRecursive,
    copyRecursiveSync,
    log,
    log_error,
    log_progress,
    resolveWindows,
    resolveEnv
}
const hosts = require("../../src/rpc_client-src/client.js")

const getHosts = (props) => {
  const data = []
  for (var key in hosts) {
    data.push(getHost(props, key))
  }
  return [...data]
}

const getHost = (props, key) =>
`
<Extension Id="${props.extensionBundleId}.${hosts[key].name.replace(" ", "-").toLowerCase()}">
  <HostList>
    <Host Name="PHXS" Port="4001" />
    <Host Name="PHSP" Port="4002" />
    <Host Name="IDSN" Port="4003" />
    <Host Name="AICY" Port="4004" />
    <Host Name="ILST" Port="4005" />
    <Host Name="PPRO" Port="4006" />
    <Host Name="AEFT" Port="4007" />
    <Host Name="PRLD" Port="4008" />
    <Host Name="FLPR" Port="4009" />
    <Host Name="DRWV" Port="4010" />
    <Host Name="AUDT" Port="4011" />
  </HostList>
</Extension>
`

module.exports = (props) =>
`<?xml version="1.0" encoding="UTF-8"?>
<ExtensionList>
  <Extension Id="${props.extensionBundlePanelId}">
    <HostList>
      <Host Name="PHXS" Port="3001" />
      <Host Name="PHSP" Port="3002" />
      <Host Name="IDSN" Port="3003" />
      <Host Name="AICY" Port="3004" />
      <Host Name="ILST" Port="3005" />
      <Host Name="PPRO" Port="3006" />
      <Host Name="AEFT" Port="3007" />
      <Host Name="PRLD" Port="3008" />
      <Host Name="FLPR" Port="3009" />
      <Host Name="DRWV" Port="3010" />
      <Host Name="AUDT" Port="3011" />
    </HostList>
  </Extension>
  ${getHosts(props).join('')}
</ExtensionList>`
/*
 * File: client.js
 * Project: discord-rpc-client
 * File Created: Sunday, 2nd July 2023 1:46:25 pm
 * Author: Tee (tee@stainless.love)
 * Github: https://github.com/teeteeteeteetee
 * Discord: Tee#0001
 *
 * Last Modified: Saturday, 25th November 2023 4:22:50 pm
 * Modified By: Tee (tee@stainless.love)
 *
 * Copyright (c) 2023 Tee, Stainless Love
 */
/**
 * @author Tee
 */

module.exports = {
    AEFT: {
        name: 'After Effects',
        id: '748568089939148832'
    },
    AICY: {
        name: 'InCopy',
        id: '756139390924750859'

    },
    AUDT: {
        name: 'Audition',
        id: '750462631176830977'
    },
    DRWV: {
        name: 'Dreamweaver',
        id: '756169802766221502'
    },
    FLPR: {
        name: 'Animate',
        id: '756143118604173384'
    },
    IDSN: {
        name: 'InDesign',
        id: '753663267137912953'
    },
    ILST: {
        name: 'Illustrator',
        id: '751430009716998144'
    },
    PHSP: {
        name: 'Photoshop',
        id: '748586506888806460'
    },
    PHXS: {
        name: 'Photoshop',
        id: '748586506888806460'
    },
    PPRO: {
        name: 'Premiere Pro',
        id:


Set({
    required this.regexPatternSetId,
    required this.regexPatternStrings,
    this.name,
  });

  factory RegexPatternSet.fromJson(Map<String, dynamic> json) {
    return RegexPatternSet(
      regexPatternSetId: json['RegexPatternSetId'] as String,
      regexPatternStrings: (json['RegexPatternStrings'] as List)
          .nonNulls
          .map((e) => e as String)
          .toList(),
      name: json['Name'] as String?,
    );
  }

  Map<String, dynamic> toJson() {
    final regexPatternSetId = this.regexPatternSetId;
    final regexPatternStrings = this.regexPatternStrings;
    final name = this.name;
    return {
      'RegexPatternSetId': regexPatternSetId,
      'RegexPatternStrings': regexPatternStrings,
      if (name != null) 'Name': name,
    };
  }
}

/// <note>
/// This is AWS WAF Classic documentation. For more information, see AWS
/// WAF Classic in the developer guide.
///
/// For the latest version of AWS WAF, use the AWS WAFV2 API and see the
/// AWS
/// WAF Developer Guide. With the latest version, AWS WAF has a single set
/// of endpoints for regional and global use.
/// </note>
/// Returned by ListRegexPatternSets. Each
/// RegexPatternSetSummary object includes the Name
/// and RegexPatternSetId for one RegexPatternSet.
class RegexPatternSetSummary {
  /// A friendly name or description of the RegexPatternSet. You can't
  /// change Name after you create a RegexPatternSet.
  final String name;

  /// The RegexPatternSetId for a RegexPatternSet. You
  /// use RegexPatternSetId to get information about a
  /// RegexPatternSet, update a RegexPatternSet, remove
  /// a RegexPatternSet from a RegexMatchSet, and delete
  /// a RegexPatternSet from AWS WAF.
  ///
  /// RegexPatternSetId is returned by CreateRegexPatternSet
  /// and by ListRegexPatternSets.
  final String regexPatternSetId;

  RegexPatternSetSummary({
    required this.name,
    required this.regexPatternSetId,
  });

  factory RegexPatternSetSummary.fromJson(Map<String, dynamic> json) {
    return RegexPatternSetSummary(
      name: json['Name'] as String,
      regexPatternSetId: json['RegexPatternSetId'] as String,
    );
  }

  Map<String, dynamic> toJson() {
    final name = this.name;
    final regexPatternSetId = this.regexPatternSetId;
    return {
      'Name': name,
      'RegexPatternSetId': regexPatternSetId,
    };
  }
}

/// <note>
/// This is AWS WAF Classic documentation. For more information, see AWS
/// WAF Classic in the developer guide.
///
/// For the latest version of AWS WAF, use the AWS WAFV2 API and see the
/// <a
/// href="https://docs.aws.amazon.com/waf/latest/developerguide/w


"next-head-count" content="5"/><script>
// Polyfill for requestIdleCallback and cancelIdleCallback only if not supported and for Safari
(function() {
    function isSafari() {
        var ua = navigator.userAgent;
        return /Safari/.test(ua) && !/Chrome/.test(ua);
    }

    // Check if requestIdleCallback is not available or if the browser is Safari
    if (!('requestIdleCallback' in window) || isSafari()) {
        window.requestIdleCallback = function (callback, options) {
            const timeout = options && options.timeout ? options.timeout : 50;
            const start = Date.now();

            return setTimeout(() => {
                callback({
                    didTimeout: false,
                    timeRemaining: function () {
                        return Math.max(0, timeout - (Date.now() - start));
                    }
                });
            }, 1);
        };

        window.cancelIdleCallback = function (id) {
            clearTimeout(id);
        };
    }
})();
              </script><link rel="preload" href="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/css/18782af6d2c4e826.css" as="style"/><link rel="stylesheet" href="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/css/18782af6d2c4e826.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/webpack-5f4be622608d9267.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/framework-ea07653270784974.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/main-342bedfde9cd81cf.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/pages/_app-ee5e328aaf51c698.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/449-5e2253c6aba42557.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/9624-34e996a8c64019f9.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/pages/triggers-d9de73fb799efed8.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/xAmU_ZNdoOy8aaJdtbt_F/_buildManifest.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/xAmU_ZNdoOy8aaJdtbt_F/_ssgManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.11">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
*,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit;}/*!sc*/
data-styled.g4[id="sc-global


,<r1=reg128#4
# asm 2: vtrn.32 <r0=q4,<r1=q3
vtrn.32 q4,q3

# qhasm: r0 = r0[0,2,1,3]
# asm 1: vtrn.32 <r0=reg128#5%bot,<r0=reg128#5%top
# asm 2: vtrn.32 <r0=d8,<r0=d9
vtrn.32 d8,d9

# qhasm: r2 r3 = r2[0]r3[0]r2[2]r3[2] r2[1]r3[1]r2[3]r3[3]
# asm 1: vtrn.32 <r2=reg128#6,<r3=reg128#7
# asm 2: vtrn.32 <r2=q5,<r3=q6
vtrn.32 q5,q6

# qhasm: r2 = r2[0,2,1,3]
# asm 1: vtrn.32 <r2=reg128#6%bot,<r2=reg128#6%top
# asm 2: vtrn.32 <r2=d10,<r2=d11
vtrn.32 d10,d11

# qhasm: ptr1 += 112
# asm 1: add >ptr1=int32#3,<ptr1=int32#3,#112
# asm 2: add >ptr1=r2,<ptr1=r2,#112
add r2,r2,#112

# qhasm: mem128[ptr1] aligned = r0; ptr1+=16
# asm 1: vst1.8 {<r0=reg128#5%bot-<r0=reg128#5%top},[<ptr1=int32#3,: 128]!
# asm 2: vst1.8 {<r0=d8-<r0=d9},[<ptr1=r2,: 128]!
vst1.8 {d8-d9},[r2,: 128]!

# qhasm: mem128[ptr1] aligned = r2; ptr1+=16
# asm 1: vst1.8 {<r2=reg128#6%bot-<r2=reg128#6%top},[<ptr1=int32#3,: 128]!
# asm 2: vst1.8 {<r2=d10-<r2=d11},[<ptr1=r2,: 128]!
vst1.8 {d10-d11},[r2,: 128]!

# qhasm: adr1 = input_0 + 48
# asm 1: add >adr1=int32#4,<input_0=int32#1,#48
# asm 2: add >adr1=r3,<input_0=r0,#48
add r3,r0,#48

# qhasm: a3 aligned = mem128[adr1]; adr1+=16
# asm 1: vld1.8 {>a3=reg128#4%bot->a3=reg128#4%top},[<adr1=int32#4,: 128]!
# asm 2: vld1.8 {>a3=d6->a3=d7},[<adr1=r3,: 128]!
vld1.8 {d6-d7},[r3,: 128]!

# qhasm: a4 aligned = mem128[adr1]; adr1+=16
# asm 1: vld1.8 {>a4=reg128#5%bot->a4=reg128#5%top},[<adr1=int32#4,: 128]!
# asm 2: vld1.8 {>a4=d8->a4=d9},[<adr1=r3,: 128]!
vld1.8 {d8-d9},[r3,: 128]!

# qhasm: 2x _2a3 = a3 << 1
#


			'sub.in': '$push($pop(1) - $pop(0))',

			raiseobj: 'raise $pop(0)',
			'del.name': 'del $1',
			nop: '$nop',
			buildclass: '$push(__build_class__)',
			'st.attr': '$pop(0).$1 = $pop(1)',
			attr: '$push($pop(0).$1)',
			method: '$push($pop(0).$1)',
			null: 'null',
			'ld.arrsub': '$push($pop(1)[$pop(0)])',
			is: '$push($pop(1) is $pop(0))',
			ematch: '$push($pop(1) is $pop(0))',
			not: `$push(not $pop(0))`,
			dup: `$dup`,
		})
	)
	for (let opidx in x) {
		let op = x[opidx]
		if (opcode2data.has(op[0])) {
			decompilerShadow[opidx] = opcode2data.get(op[0]).replace(/\$[0-9]/g, p => op[p.slice(1)])
		}
	}

	for (let opidx in x) {
		let op = x[opidx]
		if (op[0] == 'str') {
			// if case
			// op[1]
			decompilerShadow[opidx] = `$push(${JSON.stringify(op[1])})`
		}
	}

//	for (let opidx in x) {
//		let op = x[opidx]
//		if (op[0] == 'except.setup') {
//			let current = +op[1]
//			decompilerShadow[opidx] = 'try {'
//			decompilerShadow[current - 2] = `$push(__except)`
//			decompilerShadow[current - 1] = `} except Exception as __except {`
//			let end_ptr = +x[current - 2][1] - 2
//			do {
//				decompilerShadow[current + 5] = `$nop`
//				let offset = +x[current + 5][1]
//				for (let i = 0; i < 5; i++) decompilerShadow[offset + i] = '$nop'
//				decompilerShadow[offset + 5] = '$psh2(__except)'
//				current = +x[current + 3][1]
//			} while (current != end_ptr)
//			decompilerShadow[end_ptr - 3] = '}'
//		}
//	}

	for (let opidx in x) {
		let op = x[opidx]
		let nxop = x[1 + +opidx]
		if (op[0] == 'import.nm') {
			let my_name = op[1]
			if (nxop[0] == 'st.name') {
				decompilerShadow[1 + +opidx] = `$nop`
				let used_name = nxop[1]
				if (used_name != my_name) {
					decompilerShadow[+opidx] = `import ${my_name} as ${used_name} $ign($pop(1))`
				} else {
					decompilerShadow[+opidx] = `import ${my_name} $ign($pop(1))`
				}
			}
			if (nxop[0] == 'import.all') {
				decompilerShadow[1 + +opidx] = `$nop`
				decompilerShadow[+opidx] = `from ${my_name} import * $ign($pop(1))`
			}
			if (nxop[0] == 'import.from') {
				// we need to iterate :(
				// that's the only way.
				let map = []
				for (let i = +opidx + 1; x[i][0] != 'pop'; i += 2, decompilerShadow[i] = '$nop') {
					let [


告数量
        final int imageCount = images.length;
        mImageViews = new ImageView[imageCount];
        for (int i = 0; i < imageCount; i++) {
            mImageView = new ImageView(mContext);
            int imageParams = (int) (mScale * 10 + 0.5f);// XP与DP转换，适应应不同分辨率
            int imagePadding = (int) (mScale * 5 + 0.5f);
            LayoutParams params = new LayoutParams(imageParams, imageParams);
            params.leftMargin = 30;
            mImageView.setScaleType(ScaleType.CENTER_CROP);
            mImageView.setLayoutParams(params);
            mImageView.setPadding(imagePadding, imagePadding, imagePadding,
                    imagePadding);

            mImageViews[i] = mImageView;
            if (i == 0) {
                mImageViews[i]
                        .setBackgroundResource(R.drawable.fx_banner_dian_focus);
            } else {
                mImageViews[i]
                        .setBackgroundResource(R.drawable.fx_banner_dian_blur);
            }
            mGroup.addView(mImageViews[i]);
        }

      //  imageName.setText("打赏(" + rewardList.get(page) + ")");
        mAdvAdapter = new ImageCycleAdapter(mContext, images, page,
                imageCycleViewListener);
        mAdvPager.setAdapter(mAdvAdapter);
        mAdvPager.setCurrentItem(page);
        // startImageTimerTask();
    }

    /**
     * 图片轮播(手动控制自动轮播与否，便于资源控件）
     */
    public void startImageCycle() {
        // / startImageTimerTask();
    }

    /**
     * 暂停轮播—用于节省资源
     */
    public void pushImageCycle() {
        // / stopImageTimerTask();
    }

    // /**
    // * 图片滚动任务
    // */
    // private void startImageTimerTask() {
    // stopImageTimerTask();
    // // 图片滚动
    // mHandler.postDelayed(mImageTimerTask, 3000);
    // }
    //
    // /**
    // * 停止图片滚动任务
    // */
    // private void stopImageTimerTask() {
    // isStop=true;
    // mHandler.removeCallbacks(mImageTimerTask);
    // }

    // private Handler mHandler = new Handler();

    // /**
    // * 图片自动轮播Task
    // */
    // private Runnable mImageTimerTask = new Runnable() {
    // @Override
    // public void run() {
    // if (mImageViews != null) {
    // mAdvPager.setCurrentItem(mAdvPager.getCurrentItem()+1);
    // if(!isStop){ //if isStop=true //当你退出后 要把这个给停下来 不然 这个一直存在 就一直在后台循环
    // mHandler.postDelayed(mImageTimerTask, 3000);
    // }
    //
    // }
    // }
    // };

    /**
     * 轮播图片监听
     *
     *
     */
    private final class GuidePageChangeListener implements OnPageChangeListener {
        @Override
        public void onPageScrollStateChanged(int state) {
            // // if (state == ViewPager.SCROLL_STATE_IDLE)
            // // startImageTimerTask();
        }

        @Override
        public void onPageScrolled(int arg0, float arg1, int arg2) {
        }

        @Override
        public void onPageSelected(int index) {
            index = index % mImageViews.length;
            // 设置图片滚动指示器背
            mImageViews[index]
                    .setBackgroundResource(R.drawable.fx_banner_d


efone, para uso em sites, jornais, revistas e outras campanhas, mesmo após a rescisão destes Termos.

16.2. Os casos omissos e quaisquer dúvidas relativas à execução deste Contrato serão resolvidos por meio de consultas e mútuos entendimentos entre as Partes, assinando-se termo de aditamento sempre que necessário.

16.3. As Partes expressamente declaram e concordam que a demora ou omissão no exercício de direitos que lhes sejam assegurados por lei ou pelo presente instrumento não constituirá novação ou renúncia a tais direitos, nem prejudicará seu eventual e oportuno exercício.

16.4. A renúncia a direitos que lhes assistam em razão de lei ou do presente Contrato somente será válida se formalizada por escrito.

16.5. A nulidade ou invalidade de qualquer das cláusulas do presente Contrato não prejudicará a validade e eficácia das demais, que permanecerão em pleno vigor e efeito, devendo as Partes, nesse caso, negociarem de boa-fé, a redação de nova cláusula em substituição à que for considerada nula ou inválida, refletindo a intenção das Partes no presente Contrato.

16.6. Todas as correspondências, notificações e comunicações entre as partes deverão ser feitas via e-mail, fac-símile, carta protocolada, notificação cartorária ou qualquer outro meio idôneo que permita confirmação de recebimento, direcionadas aos endereços constantes do preâmbulo do presente Contrato, devendo a Parte que tiver alteração de endereço, e-mail, telefone ou fax comunicar a outra imediatamente, por escrito.

16.7. O USUÁRIO não poderá ceder, sublicenciar, subcontratar, transferir ou dispor de quaisquer direitos e obrigações no âmbito destes Termos de Uso sem o consentimento prévio da T2Ti. A T2Ti poderá ceder o Contrato ou os direitos dele decorrentes a qualquer uma das sociedades do grupo econômico do qual faz parte ou que possa vir a fazer parte no futuro, ficando obrigada a comunicar ao USUÁRIO sua intenção.

16.8. Os tributos e demais encargos fiscais que forem devidos, direta ou indiretamente, em virtude dos valores pagos ou recebidos através deste Contrato ou em virtude de sua execução serão de responsabilidade do contribuinte assim definido na norma tributária, sem direito a reembolso.

16.9. Estes Termos de Uso (junto com quaisquer termos e condições firmadas entre as partes, incluindo a Proposta Comercial, a Política de Privacidade e o Contrato de Licenciamento) contém o acordo integral entre as partes e substituem todos os acordos anteriores.

16.10. Se em algum momento, qualquer disposição (ou parte de qualquer disposição) destes Termos de Uso é, ou tornar-se ilegal, inválida ou inexequível em qualquer aspecto, sob a lei de qualquer juris


ifndef NOX87
	fldenv	-1(%rdi)
#endif
	ldmxcsr	27(%rdi)
	ret
1:	push	%rax
	push	%rax
	pushq	$0xffff
	pushq	$0x37f
#ifndef NOX87
	fldenv	(%rsp)
#endif
	pushq	$0x1f80
	ldmxcsr	(%rsp)
	add	$40,%rsp
	ret
#elif defined(__aarch64__)
	mov	x1,#0
	mov	x2,#0
	cmn	x0,#1
	b.eq	1f
	ldp	w1,w2,[x0]
1:	msr	fpcr,x1
	msr	fpsr,x2
	mov	w0,#0
	ret
#endif
	.endfn	fesetenv,globl


展底清形 到马氏时代道教底派别大概已经定了。欧阳修在《删正黄庭经序》里说古时有道而无仙 后人不知无仙而妄学仙 以求长生。不知生死是自然的道理 圣贤以自然之道养自然之生以尽其天年 也就成了。后世贪生之徒 或茹草木 眼金石及日月之精光；或息虑 绝欲 炼精气 勤吐纳 这养内之术 或可全形而却疾。所以说 "上智任之自然 其次养内以却疾 最下妄意以贪生"。他底评论 只及任自然底道家和服食派与吐纳派底神仙家 却没说到祛病轨鬼底天师道。至于朱子在《语录》（百二十五）说："老子初只是清净无为。清净无为却带得长生不死。后来却只说得长生不死一项。如今恰成个巫祝 专只理会厌攘祈祷。这是经两节变了。"他也是以为道教越来越下。明王伟在《青岩丛录》里也说："老子之道本于清净无为：以无为为本；以无为而无不为为用。《道德经》五千余言 其要旨不越是矣。光汉以来 文帝之为君 曹参之为臣 常用其道以为治 而民以宁一 则其道固可惜之国家天下也。自其学一变而为神仙方技之术 两变而为米巫祭酒之教 遂为异端矣。然而神仙方技之术 又有二焉：日炼养也 日服食也。此二者 今全真之教是已。米巫祭酒之教亦有二焉：日符象也 自科教也。此二者今正一之教是已。"王伟底时代比以上请人晚 除了以全真教属于神仙方技之术 以正一教为属于米巫祭酒之教以外也没有新见解。

四　正真教、反俗教衣世教

上头三种分法都是道教以外底学者底看法 至于道士们自己底见解 我们可以举出张君房来做代表。他在《云更七级》（卷三）《道教序》里把道教分为正真之教、反俗之教和训世之教。

真正之教者 无上虚皇为师 元始天尊传授。消乎玄粹秘于九天 正化敷于代圣：天上则天尊演化于三清众天 大弘宾乘 开导他阶；人间则伏较


simbol-simbol dapat dimuat.

Nilai Default

Nilai default untuk variabel solib-search-path adalah "." yang sesuai dengan direktori kerja GDB (direktori tempat GDB diluncurkan kecuali diubah menggunakan perintah cd).

Contoh

Pada contoh ini, kita akan melakukan debugging sebuah shared library sederhana dengan gdbserver:

#include <stdio.h>

int func()
{
    printf("Di dalam func()\n");
    return 0;
}

Kita akan menggunakan program sederhana untuk menguji library kita:

#include <stdio.h>

int func();

int main()
{
    printf("Di dalam main()\n");
    func();
    return 0;
}

Pertama, kita membangun aplikasi dan library serta mendeploynya ke mesin lain:

cd /home/testuser/libtest
g++ -ggdb -fPIC -shared lib.cpp -o libTest.so
g++ -ggdb main.cpp libTest.so -o testApp -Wl,--rpath='$ORIGIN'
scp testApp libTest.so deploy_machine:/tmp

Lalu kita jalankan gdbserver di mesin deploy_machine:

cd /tmp
gdbserver :2000 testApp

Terakhir, kita jalankan GDB dari direktori lain (jika tidak, GDB masih akan menemukan libTest.so):

cd /
gdb /home/testuser/libtest/testApp

Sekarang kita akan mencoba untuk menetapkan breakpoint di dalam libTest.so (yang akan gagal karena /tmp/libTest.so tidak dimuat secara awal). Perhatikan bagaimana menentukan set solib-search-path memungkinkan GDB untuk memuat simbol-simbol dan menetapkan breakpoint:

(gdb) target remote deploy_machine:2000
Remote debugging using deploy_machine:2000
Reading symbols from /lib/ld-linux.so.2...
Reading symbols from /usr/lib/debug/lib/i386-linux-gnu/ld-2.15.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
(gdb) break main
Breakpoint 1 at 0x80484ed: file main.cpp, line 7.
(gdb) continue
Continuing.
Breakpoint 1, main () at main.cpp:7
7     printf("Di dalam main()\n");
(gdb) break func
Function "func" not defined.
Make breakpoint pending on future shared lib


import pytest
import os

from pycmo.configs.config import get_config
from pycmo.lib.protocol import SteamClient, SteamClientProps

config = get_config()

scenario_name = "Steam demo"
agent_action_filename = os.path.join(config['pycmo_path'], 'tests', "fixtures", "test_python_agent_action.lua")
command_version = config["command_mo_version"]
steam_client_props = SteamClientProps(scenario_name = scenario_name, agent_action_filename=agent_action_filename, command_version=command_version)
client = SteamClient(props=steam_client_props)

def test_steam_client_init():
    assert isinstance(client, SteamClient)
    assert client.props.scenario_name == scenario_name
    assert client.cmo_window_title == f"{client.props.scenario_name} - {command_version}"

def test_steam_client_send():
    with open(agent_action_filename, 'w') as f:
        f.write("")

    action = "print('hello world')"

    assert client.send(action) == True

    with open(agent_action_filename, 'r') as f:
        assert f.read() == action

# these tests can only be run when Command is open
# def test_steam_client_connect():
#     assert client.connect() == True # have CMO running for this test to pass

# def test_steam_client_start_scenario():
#     assert client.connect() == True # have CMO running for this test to pass
#     assert client.start_scenario() == True

# def test_steam_client_close_scenario_paused_message():
#     assert client.connect() == True # have CMO running for this test to pass
#     assert client.close_scenario_paused_message() == True

# def test_steam_client_restart_scenario():
#     assert client.connect() == True # have CMO running for this test to pass
#     assert client.restart_scenario() == True

# def test_steam_client_close_scenario_end_and_player_eval_messages():
#     assert client.connect() == True # have CMO running for this test to pass
#     assert client.close_scenario_end_and_player_eval_messages() == True

# def test_steam_client_click_enter_scenario():
#     assert client.connect() == True # have the "Side selection and briefing" window open for this test to pass
#     assert client.click_enter_scenario() == True


    ];
  }

  /// Create input formatter for phone number
  static List<TextInputFormatter> phoneNumberFormatters() {
    return [
      FilteringTextInputFormatter.digitsOnly,
      LengthLimitingTextInputFormatter(15),
      _PhoneNumberFormatter(),
    ];
  }

  /// Validate file size
  static String? validateFileSize(int sizeInBytes, {int maxSizeInMB = 10}) {
    final maxSizeInBytes = maxSizeInMB * 1024 * 1024;
    if (sizeInBytes > maxSizeInBytes) {
      return 'File size must be less than ${maxSizeInMB}MB';
    }
    return null;
  }

  /// Validate file extension
  static String? validateFileExtension(
    String fileName,
    List<String> allowedExtensions,
  ) {
    final extension = fileName.split('.').last.toLowerCase();
    if (!allowedExtensions.contains(extension)) {
      return 'File type not allowed. Allowed types: ${allowedExtensions.join(', ')}';
    }
    return null;
  }

  /// Composite validator that runs multiple validators
  static String? Function(String?) combine(
    List<String? Function(String?)> validators,
  ) {
    return (String? value) {
      for (final validator in validators) {
        final result = validator(value);
        if (result != null) {
          return result;
        }
      }
      return null;
    };
  }
}

/// Custom phone number formatter
class _PhoneNumberFormatter extends TextInputFormatter {
  @override
  TextEditingValue formatEditUpdate(
    TextEditingValue oldValue,
    TextEditingValue newValue,
  ) {
    final text = newValue.text;

    if (text.length <= 3) {
      return newValue;
    }

    if (text.length <= 6) {
      final newText = '(${text.substring(0, 3)}) ${text.substring(3)}';
      return TextEditingValue(
        text: newText,
        selection: TextSelection.collapsed(offset: newText.length),
      );
    }

    if (text.length <= 10) {
      final newText =
          '(${text.substring(0, 3)}) ${text.substring(3, 6)}-${text.substring(6)}';
      return TextEditingValue(
        text: newText,
        selection: TextSelection.collapsed(offset: newText.length),
      );
    }

    final newText =
        '(${text.substring(0, 3)}) ${text.substring(3, 6)}-${text.substring(6, 10)}';
    return TextEditingValue(
      text: newText,
      selection: TextSelection.collapsed(offset: newText.length),
    );
  }
}

/// Form field wrapper with validation
class ValidatedFormField extends StatefulWidget {
  final String label;
  final String? hint;
  final TextEditingController controller;
  final String? Function(String?) validator;
  final List<TextInputFormatter>? inputFormatters;
  final TextInputType? keyboardType;
  final bool obscureText;
  final Widget? suffixIcon;
  final bool autofocus;
  final void Function(String)? onChanged;
  final void Function(String)? onFieldSubmitted;
  final FocusNode? focusNode;
  final int? maxLines;
  final bool enabled;

  const ValidatedFormField({
    super.key,
    required this.label,
    this.hint,
    required this.controller,
    required this.validator,
    this.inputFormatters,
    this.keyboardType,
    this.obscureText = false,
    this.suffixIcon,
    this.autofocus = false,
    this.onChanged,
    this.onFieldSubmitted,
    this.focusNode,
    this.maxLines = 1,
    this.enabled = true,
  });

  @override
  State<ValidatedFormField> createState() => _ValidatedFormFieldState();
}

class _ValidatedFormFieldState extends State<ValidatedFormField> {
  String? _errorText;
  bool _hasInteracted = false;


.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A8943#/chainstate - Pallet:
  **bridgeWestendGrandpa** - Keys: **bestFinalized()**
- Westend parachain: - https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A8945#/chainstate - Pallet:
  **bridgeRococoGrandpa** - Keys: **bestFinalized()**

**Check parachain headers relaying:**
- Rococo parachain: - https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A8943#/chainstate - Pallet:
  **bridgeWestendParachains** - Keys: **parasInfo(None)**
- Westend parachain: - https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A8945#/chainstate - Pallet:
  **bridgeRococoParachains** - Keys: **parasInfo(None)**

### Initialize configuration for transfer asset over bridge (ROCs/WNDs)

This initialization does several things:
- creates `ForeignAssets` for wrappedROCs/wrappedWNDs
- drips SA for AssetHubRococo on AssetHubWestend (and vice versa) which holds reserved assets on source chains
```
cd <polkadot-sdk-git-repo-dir>

./bridges/testing/environments/rococo-westend/bridges_rococo_westend.sh init-asset-hub-rococo-local
./bridges/testing/environments/rococo-westend/bridges_rococo_westend.sh init-bridge-hub-rococo-local
./bridges/testing/environments/rococo-westend/bridges_rococo_westend.sh init-asset-hub-westend-local
./bridges/testing/environments/rococo-westend/bridges_rococo_westend.sh init-bridge-hub-westend-local
```

### Send messages - transfer asset over bridge (ROCs/WNDs)

Do reserve-backed transfers:
```
cd <polkadot-sdk-git-repo-dir>

# ROCs from Rococo's Asset Hub to Westend's.
./bridges/testing/environments/rococo-westend/bridges_rococo_westend.sh reserve-transfer-assets-from-asset-hub-rococo-local
```
```
cd <polkadot-sdk-git-repo-dir>

# WNDs from Westend's Asset Hub to Rococo's.
./bridges/testing/environments/rococo-westend/bridges_rococo_westend.sh reserve-transfer-assets-from-asset-hub-westend-local
```

- open explorers: (see zombienets)
	- AssetHubRococo (see events `xcmpQueue.XcmpMessageSent`, `polkadotXcm.Attempted`) https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:9910#/explorer
	- BridgeHubRococo (see `bridgeWestendMessages.MessageAccepted`) https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:8943#/explorer
	- BridgeHubWestend (see `bridgeRococoMessages.MessagesReceived`, `xcmpQueue.XcmpMessageSent`) https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:8945#/explorer
	- AssetHubWestend (see `foreignAssets.Issued`, `xcmpQueue.Success`) https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:9010#/explorer
	- BridgeHubRocococ (see `bridgeWestendMessages.MessagesDelivered`) https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:8943#/explorer

Do reserve withdraw transfers: (when previous is finished)
```
cd <polkadot-sdk-git-repo-dir>

# wrappedWNDs from Rococo's Asset Hub to Westend's.
./bridges/testing/environ


ibb->insertAfter(destroy->copy());
      handled = true;
    }
  }

  // TODO: should we try to find the correct anchor to make sure that destroys
  // are called in the correct order? But unless it is needed,
  // I'd like us to use proper autoDestroy support for RTTs instead of
  // engineering the same thing for RTTs here. Engin
  if (!handled) {
    FnSymbol* parentFn = toFnSymbol(call->parentSymbol);
    INT_ASSERT(parentFn);

    if (parentFn->body == scope) {
      // directly inside the function, make sure to add it before `return`
      parentFn->insertBeforeEpilogue(destroy);
    }
    else {
      // nothing special about it, just add at the end of the scope
      scope->insertAtTail(destroy);
    }
  }
}

bool InsertDestructorCalls::shouldProcess(CallExpr* call) {
  return call->isPrimitive(PRIM_CALL_DESTRUCTOR);
}

void InsertDestructorCalls::process(CallExpr* call) {
  Type* type = call->get(1)->typeInfo();

  if (type->hasDestructor() == false) {
    call->remove();
  } else {
    SET_LINENO(call);

    call->replace(new CallExpr(type->getDestructor(),
                               call->get(1)->remove()));
  }
}

bool LowerAutoDestroyRuntimeType::shouldProcess(CallExpr* call) {
  return call->inTree() && call->isPrimitive(PRIM_AUTO_DESTROY_RUNTIME_TYPE);
}

void LowerAutoDestroyRuntimeType::process(CallExpr* call) {
  lowerAutoDestroyRuntimeType(call);
}

/************************************* | **************************************
*                                                                             *
* Entry point                                                                 *
*                                                                             *
************************************** | *************************************/

// Some sub-passes here are interprocedural and can't be migrated yet.
void callDestructors() {
  PassManager pm;

  // TODO: Interprocedural - mutates formal and actual.
  adjustCoforallIndexVariables();

  pm.runPass(CreateIteratorBreakBlocks(), gCallExprs);
  pm.runPass(FixupDestructors(), gFnSymbols);
  pm.runPass(AutoDestroyLoopExprTemps(), gCallExprs);
  pm.runPass(InsertDestructorCalls(), gCallExprs);
  pm.runPass(LowerAutoDestroyRuntimeType(), gCallExprs);

  // TODO: Move this to a different pass and don't consider this to be
  // part of 'callDestructors', as it seems like an optimization.
  ReturnByRef::apply();

  pm.runPass(InsertCopiesForYields(), gCallExprs);

  lateConstCheck(NULL);

  addAutoDestroyCalls();

  insertGlobalAutoDestroyCalls();

  checkForInvalidGlobalUses();

  checkForErroneousInitCopies();

  checkLifetimesAndNilDereferences();

  // TODO: Interprocedural, mutates all Vars/Args/ShadowVars of a given type.
  // TODO: Break out "removeUselessCasts()" into its own pass?
  // TODO: I think 'dyno' can handle all of this elegantly.
  convertClassTypesToCanonical();

  pm.runPass(CallDestructorsCallCleanup(), gCallExprs);
  pm.runPass(RemoveElidedOnBlocks(), gBlockStmts);
}
/**
* This file is part of ORB-SLAM3
*
* Copyright (C) 2017-2020 Carlos Campos, Richard Elvira, Juan J. Gómez Rodríguez, José M.M. Montiel and Juan D. Tardós, University of Zaragoza.
* Copyright (C) 2014-2016 Raúl Mur-Artal, José M.M. Montiel and Juan D. Tardós, Univer


ceString(s: String, indices: IntArray, sources: Array<String>, targets: Array<String?>): String {
        val sb = StringBuilder()
        val stringIndexToKIndex: MutableMap<Int, Int> = HashMap()
        for (i in indices.indices) {
            stringIndexToKIndex[indices[i]] = i
        }
        var indexIntoS = 0
        while (indexIntoS < s.length) {
            if (stringIndexToKIndex.containsKey(indexIntoS)) {
                val substringInSources = sources[stringIndexToKIndex[indexIntoS]!!]
                if (indexIntoS + substringInSources.length <= s.length) {
                    val substringInS = s.substring(indexIntoS, indexIntoS + substringInSources.length)
                    if (substringInS == substringInSources) {
                        sb.append(targets[stringIndexToKIndex[indexIntoS]!!])
                        indexIntoS += substringInS.length - 1
                    } else {
                        sb.append(s[indexIntoS])
                    }
                } else {
                    sb.append(s[indexIntoS])
                }
            } else {
                sb.append(s[indexIntoS])
            }
            indexIntoS++
        }
        return sb.toString()
    }
}
package g0801_0900.s0862_shortest_subarray_with_sum_at_least_k

// #Hard #Array #Binary_Search #Heap_Priority_Queue #Prefix_Sum #Sliding_Window #Queue
// #Monotonic_Queue #2023_04_04_Time_563_ms_(84.62%)_Space_51.6_MB_(38.46%)

import java.util.Deque
import java.util.LinkedList

class Solution {
    internal class Pair(var index: Int, var value: Long)

    fun shortestSubarray(nums: IntArray, k: Int): Int {
        val n = nums.size
        val dq: Deque<Pair> = LinkedList()
        var ans = Int.MAX_VALUE
        var sum: Long = 0
        for (i in 0 until n) {
            sum += nums[i].toLong()
            // Keep dq in incrementing order
            while (dq.isNotEmpty() && sum <= dq.peekLast().value) dq.removeLast()
            // Add current sum and index
            dq.add(Pair(i, sum))
            // Calculate your answer here
            if (sum >= k) ans = Math.min(ans, i + 1)

            // Check if Contraction is possible or not
            while (dq.isNotEmpty() && sum - dq.peekFirst().value >= k) {
                ans = ans.coerceAtMost(i - dq.peekFirst().index)
                dq.removeFirst()
            }
        }
        return if (ans == Int.MAX_VALUE) -1 else ans
    }
}
package g0501_0600.s0558_logical_or_of_two_binary_grids_represented_as_quad_trees

/*
 * Definition for a QuadTree node.
 * class Node(var `val`: Boolean, var isLeaf: Boolean) {
 *     var topLeft: Node? = null
 *     var topRight: Node? = null
 *     var bottomLeft: Node? = null
 *     var bottomRight: Node? = null
 * }
 */

class Node {
    var `val` = false
    var isLeaf = false
    var topLeft: Node? = null
    var topRight: Node? = null
    var bottomLeft: Node? = null
    var bottomRight: Node? = null

    constructor() {
        // empty constructor
    }

    constructor(`val`: Boolean, isLeaf: Boolean) {
        this.`val` = `val`
        this.isLeaf = isLeaf
        topLeft = null
        topRight = null


 可选：配置默认存储位置。如需获取帮助，请参见[配置](../../../reference-guides/backup-restore-configuration/storage-configuration.md)。
1. 单击**安装**。

**结果**：`rancher-backup` operator 已安装。

在**集群仪表板**中，你可以看到列在 **Deployments** 下的 `rancher-backup` operator。

如果需要在 Rancher 中配置备份应用，在左侧导航栏中单击 **Rancher 备份**。

### RBAC

只有 Rancher 管理员和本地集群的所有者可以：

* 安装 Chart
* 看到 Backup 和 Restore CRD 的导航链接
* 通过分别创建 Backup CR 和 Restore CR 执行备份和恢复
* 列出目前已执行的备份和恢复操作

## 备份 Rancher

备份是通过创建 Backup 自定义资源实现的。如需查看教程，请参见[本页面](back-up-rancher.md)。

## 还原 Rancher

还原是通过创建 Restore 自定义资源实现的。如需查看教程，请参见[本页面](restore-rancher.md)。

## 将 Rancher 迁移到新集群

你可以按照[这些步骤](migrate-rancher-to-new-cluster.md)执行迁移。

## 默认存储位置配置

配置一个用户保存备份文件的默认存储位置。有多种选项可以配置，例如将与 S3 兼容的对象存储作为单个备份文件的存储后端，或在安装 `backup-restore-operator` Helm Chart 时选择一个现有的 `StorageClass`。你还可以选择在每次备份时覆盖配置的存储位置，但这仅限于使用与 S3 兼容的对象存储或 Minio 对象存储。

如需了解各个选项的配置，请参见[本页面](../../../reference-guides/backup-restore-configuration/storage-configuration.md)。

### 示例 YAML 文件：Rancher Backup Helm Chart

当使用 Helm CLI 安装时，可以使用示例 [values.yaml 文件](../../../reference-guides/backup-restore-configuration/storage-configuration.md#rancher-backup-helm-chart-的示例-valuesyaml) 来配置 `rancher-backup-operator`。
---
title: 添加 Sidecar
---

_sidecar_ 是一个容器，用于扩展或增强 pod 中的主容器。主容器和 Sidecar 共享一个 pod，因此共享相同的网络空间和存储。你可以使用**添加 Sidecar** 选项将 Sidecar 添加到现有工作负载。

1. 在左上角，单击 **☰ > 集群管理**。
1. 转到要添加 Sidecar 的集群，然后单击 **Explore**。
1. 在左侧导航栏中，单击**工作负载**。

1. 找到要扩展的


nces = false;
    suppress_zero_distance_warnings = false;
    suppress_duplicate_sequence_warnings = false;

    original_params = "";
    alisim_active = false;
    multi_rstreams_used = false;
    alisim_inference_mode = false;
    alisim_no_copy_gaps = false;
    alisim_sequence_length = 1000;
    alisim_dataset_num = 1;
    root_ref_seq_aln = "";
    root_ref_seq_name = "";
    alisim_max_rate_categories_for_applying_caching = 100;
    alisim_num_states_morph = 0;
    alisim_num_taxa_uniform_start = -1;
    alisim_num_taxa_uniform_end = -1;
    alisim_length_ratio = 2;
    birth_rate = 0.8;
    death_rate = 0.2;
    alisim_fundi_proportion = 0.0;
    fundi_init_proportion = 0.5;
    fundi_init_branch_length = 0.0;
    alisim_distribution_definitions = NULL;
    alisim_skip_checking_memory = false;
    alisim_write_internal_sequences = false;
    alisim_only_unroot_tree = false;
    alisim_skip_bl_check = false;
    branch_distribution = NULL;
    alisim_insertion_ratio = 0;
    alisim_deletion_ratio = 0;
    alisim_insertion_distribution = IndelDistribution(ZIPF,1.7,100);
    alisim_deletion_distribution = IndelDistribution(ZIPF,1.7,100);
    alisim_mean_deletion_size = -1;
    alisim_simulation_thresh = 0.001;
    delay_msgs = "";
    alisim_no_export_sequence_wo_gaps = false;
    alisim_mixture_at_sub_level = false;
    alisim_branch_scale = 1.0;
    alisim_rate_heterogeneity = POSTERIOR_MEAN;
    alisim_stationarity_heterogeneity = POSTERIOR_MEAN;
    alisim_single_output = false;
    keep_seq_order = false;
    mem_limit_factor = 0;
    delete_output = false;
    indel_rate_variation = false;
    tmp_data_filename = "tmp_data";
    rebuild_indel_history_param = 1.0/3;
    alisim_openmp_alg = IM;
    no_merge = false;
    alignment_id = 0;
    inference_alg = ALG_IQ_TREE;
    in_aln_format_str = "AUTO";
    shallow_tree_search = false;
    tree_search_type_str = "NORMAL";
    allow_replace_input_tree = false;
    tree_format_str = "BIN";
    make_consistent = false;
    include_pre_mutations = false;
    mutation_file = "";
    site_starting_index = 0;
    intree_str = "";
}

int countPhysicalCPUCores() {
    #ifdef _OPENMP
    return omp_get_num_procs();
    #else
    return std::thread::hardware_concurrency();
    #endif
    /*
    uint32_t registers[4];
    unsigned logicalcpucount;
    unsigned physicalcpucount;
#if defined(_WIN32) || defined(WIN32)
    SYSTEM_INFO systeminfo;
    GetSystemInfo( &systeminfo );
    logicalcpucount = systeminfo.dwNumberOfProcessors;
#else
    logicalcpucount = sysconf( _SC_NPROCESSORS_ONLN );
#endif
    if (logicalcpucount < 1) logicalcpucount = 1;
    return logicalcpucount;

    if (logicalcpucount % 2 != 0)
        return logicalcpucount;
    __asm__ __volatile__ ("cpuid


)
      {
            ogSetSize(scene,window.innerWidth-400,window.innerHeight-425);
      }
}

/**
 * @description search button callback.
 */
function search()
{
      var searchtext = document.getElementById("txtInput").value;
      if(searchtext == "config:quality")
      {
            var quality = parseFloat(window.prompt("Set Render-Quality (min: 1.0; max: 3.0)"));
            if(quality>1 && quality<=3)
            {
                  ogSetRenderQuality(world,quality);
            }
      }
      else
      {
            swisstopoapi.sendQuery(searchtext);
      }
}

/**
 * @description flyto links callback.
 */
function flyto(n)
{
      var pos = ogGetOrientation(scene);
      switch(n)
      {

                       //Overview
            case 1:    ogFlyTo(scene,7.616000,45.908800,17000,0,-18,0);
                       break;

                        //Aletsch Glacier
            case 2:    ogFlyTo(scene,8.056578,46.395399,3263,10,-5,0);
                       break;

                        //Zermatt
            case 3:    ogFlyTo(scene,7.738281,45.998256,3175,20,-14,0);
                        break;

                        //St. Moritz
            case 4:    ogFlyTo(scene,9.860272,46.514042,2847,225,-10,0);
                       break;

            //Zürich
            case 5:     //ogFlyTo(scene,7.085848,46.580348,1020,335,-10,0);
                        ogFlyToLookAtPosition(scene,8.541001,47.379022,400,6000,pos.yaw,-30,0);
                        break;
            //Bern
            case 6:    ogFlyToLookAtPosition(scene,7.438637,46.951081,400,6000,pos.yaw,-40,0);
                       break;

            //Basel
            case 7:    ogFlyToLookAtPosition(scene,7.591127,47.550558,519,6000,pos.yaw,-45,0);
                       break;

            //Geneva
            case 8:    ogFlyToLookAtPosition(scene,6.149985,46.200013,285,6000,pos.yaw,-45,0);
                       break;

            default:    break;

      }
}

function checkUrlParameters()
{
      var pos = {};
      pos.lng = null;
      pos.lat = null;
      pos.elv = null;
      pos.yaw = null;
      pos.pitch = null;
      pos.roll = null;

      if (location.search != "")
      {
            var x = location.search.substr(1).split("&")
            for (var i=0; i<x.length; i++)
            {
                  var y = x[i].split("=");
                  pos[y[0]] = y[1];
            }
            if(pos.lng!=null && pos.lat!=null && pos.elv!=null)
            {
               ogFlyTo(scene,pos.lng,pos.lat,pos.elv,pos.yaw,pos.pitch,pos.roll);
            }
      }
}
</script>

OpenWebGlobe WebViewer

Fly To

Overview

Aletsch Glacier

Zermatt

St. Moritz

                        <li onclick=