content
stringlengths
2
6.21k
label
stringclasses
16 values
local M = {} --- @class neoment.Error<A, E>: { data?: A, error?: E } --- Create a new Error instance. --- @generic A --- @generic E --- @param error E The error --- @return neoment.Error<A, E> M.error = function(error) return { error = error, } end --- Create a new Ok instance. --- @generic A, E --- @param data ...
Lua
KeyRestrictions' }, { '1': 'ios_key_restrictions', '3': 4, '4': 1, '5': 11, '6': '.google.api.apikeys.v2.IosKeyRestrictions', '9': 0, '10': 'iosKeyRestrictions' }, { '1': 'api_targets', '3': 5, '4': 3, '5': 11, '6': '.google.api.api...
Dart
request_proxy_index]["count"] < self.invalid_proxy_threshold: self.invalid_proxy(request_proxy_index) elif request_proxy_index == self.proxy_index: # 虽然超时,但是如果之前一直很好用,也不设为invalid self.inc_proxy_index() else: # 简单的切换而不禁用 i...
Python
using Kanvas; using Komponent.Contract.Aspects; using Konnect.Plugin.File.Image; namespace plugin_level5.N3DS.Image { struct ZtexHeader { public string magic; public short imageCount; public short flags; public bool HasExtendedEntries => (flags & 1) != 0; public bool ...
C#
"); let yaml_objs = filter_map_file_objs( list_files( &client, repo_config, fetch_last_tag(&client, repo_config).await?, ) .await?, ) .collect_vec(); progress.finish_with_message("done"); Ok(yam...
Rust
#pragma once #ifdef ZIMG_X86 #ifndef ZIMG_DEPTH_X86_DEPTH_CONVERT_X86_H_ #define ZIMG_DEPTH_X86_DEPTH_CONVERT_X86_H_ #include "depth/depth_convert.h" namespace zimg::depth { #define DECLARE_LEFT_SHIFT(x, cpu) \ void left_shift_##x##_##cpu(const void *src, void *dst, unsigned shift, unsigned left, unsigned right) #...
C
s */ #define VIDIOCPWCMPTRESET _IOW('v', 211, int) #define VIDIOCPWCMPTGRANGE _IOR('v', 211, struct pwc_mpt_range) #define VIDIOCPWCMPTSANGLE _IOW('v', 212, struct pwc_mpt_angles) #define VIDIOCPWCMPTGANGLE _IOR('v', 212, struct pwc_mpt_angles) #define VIDIOCPWCMPTSTATUS _IOR('v', 213, struct pwc_mpt_status) /* Get t...
C
e_wrap'); const esm = require('internal/process/esm_loader'); // Setup per-isolate callbacks that locate data or callbacks that we keep // track of for different ESM modules. setInitializeImportMetaObjectCallback(esm.initializeImportMetaObject); setImportModuleDynamicallyCallback(esm.importModuleDyn...
JavaScript
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/props_junk/rock001a.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMaterial("models/shiny") self:SetColor(Color(220, 134, 159, 255)); self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(...
Lua
average_volume_%03d.hdf" % rviper_iter ) master_var = os.path.join( masterdir, "variance_volume_%03d.hdf" % rviper_iter ) sp_global_def.sxprint( "Copying average and variance from iteration %03d to output directory %...
Python
brazier, and pressure valve). Talk to "Tipsy" McManus to start the quest. He'll tell you what to do (it's all random). Do it quickly.|M|26.7,60.0| T Still At It|QID|12644|Z|119; Sholazar Basin|N|To Grimbooze Thunderbrew.|M|26.8,60.1| A The Taste Test|QID|12645|PRE|12644|Z|119; Sholazar Basin|N|From Grimbooze Thunderbre...
Lua
his.skip = path; this.input = PATH.dirname(path); this.output = path = temporaryDirectory + this.di; this.manifest = null; if (!FS.existsSync(path)) FS.mkdirSync(path); this.push(new task(this)); } Tool.prototype = Object.create(Queue.prototype, { end: { value:function() { }}, }); var tool = new Tool(pr...
JavaScript
using Hover.Core.Utils; using UnityEngine; namespace Hover.Core.Layouts.Rect { /*================================================================================================*/ public class HoverLayoutRectRow : HoverLayoutRectGroup, ILayoutableRect { public const string SizeXName = "SizeX"; public const st...
C#
5-.062.583-.172 1.262-.571 2.049-.271.533-.341.617-.354 1.01-.021.595-.062 1.22.637 1.604.697.385 1.604.527 2.438 1.104.923.641.822 1.783.822 1.783-.022.275-.269.5-.542.5h-9.991c-.275 0-.477-.223-.448-.496l.051-.408z'/%3e%3c/g%3e%3c/svg%3e"); } .toolbar-icon-system-modules-list::before { background-image: url("data:...
CSS
.substring(1); } import 'dart:math'; import 'package:flutter/material.dart'; import '../infinite_progress.dart'; /// /// author: Vans Z /// date: 2019-06-02 /// class LineSpinFadeLoaderIndicator extends StatefulWidget { LineSpinFadeLoaderIndicator({ this.radius = 18, this.minLineWidth: 2.4, this.maxLi...
Dart
0x000fffff, }, { 0, 0 }, }; MODULE_DEVICE_TABLE(amba, pl010_ids); static struct amba_driver pl010_driver = { .drv = { .name = "uart-pl010", .pm = &pl010_dev_pm_ops, }, .id_table = pl010_ids, .probe = pl010_probe, .remove = pl010_remove, }; static int __init pl010_init(void) { printk(KERN_INFO "Serial:...
C
xt(): (html: string) => HTMLElement { return (html: string) => { const htmlElement = document.createElement('html'); htmlElement.innerHTML = html; return htmlElement; }; } export function getPSMFTournamentUrl(tournament: string) { return `${psmfBaseUrl}/souteze/${tournament}/`; } export function getPSMFGroup...
Typescript
state?: 'error' | 'loading' | 'success'; /** * 输入框尺寸 */ size?: 'small' | 'medium' | 'large'; /** * 是否禁用 */ disabled?: boolean; /** * 是否显示清空按钮 */ hasClear?: boolean; /** * 弹层显示状态 */ visible?: boolean; /** * 弹层默认是否显示 */ defa...
Typescript
;this file for FamiTone2 libary generated by nsf2data tool .export _demo_sounds _demo_sounds: .word @ntsc .word @pal @ntsc: .word @sfx_ntsc_0 .word @sfx_ntsc_1 .word @sfx_ntsc_2 .word @sfx_ntsc_3 @pal: .word @sfx_pal_0 .word @sfx_pal_1 .word @sfx_pal_2 .word @sfx_pal_3 @sfx_ntsc_0: .byte $80,$bf,$81,$56,$...
Assembly
কে: * `Union` * `Optional` * ...এবং অন্যান্য। //// //// tab | Python 3.8+ * `List` * `Tuple` * `Set` * `Dict` * `Union` * `Optional` * ...এবং অন্যান্য। //// ### ক্লাস হিসেবে টাইপস আপনি একটি ভেরিয়েবলের টাইপ হিসেবে একটি ক্লাস ঘোষণা করতে পারেন। ধরুন আপনার কাছে `Person` নামে একটি ক্লাস আছে, যার একটি নাম আছে: {* ....
Markdown
deserialize: _queryHistoryCollectionDeserialize, deserializeProp: _queryHistoryCollectionDeserializeProp, idName: r'id', indexes: { r'searchedAt': IndexSchema( id: 4437879492455379665, name: r'searchedAt', unique: false, replace: false, properties: [ IndexPropertySchem...
Dart
n() ) return; if ( TheNavMesh->GetMarkedArea() ) { CNavArea *markedArea = TheNavMesh->GetMarkedArea(); bool fine = CheckAreaAgainstAllZoneAreas( markedArea ); if( fine ) { Msg( "Area #%d is connected to all goal areas.\n", markedArea->GetID() ); } } else { // Otherwise, loop through every area, a...
C++
ith sort() and page() returns wrong result", 5, page3.size()); assertEquals("Advanced find() with sort() and page() returns wrong result", "test010", page3.get(0).getName()); assertEquals("Advanced find() with sort() and page() returns wrong result", "test011", page3.get(1).getName()); assertEquals("Advanced f...
Java
#pragma once /* File: adapter.fwd.h */ /* Copyright (c) 2014, Christian E. Schafmeister CLASP is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any...
C
de-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}/** layui-v2.2.6 MIT License By https://www.layui.com */ .laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:...
CSS
-toggle=tooltip] { position: relative; } .card-title { float: left; margin: 0; font-size: 1.1rem; font-weight: 400; } .btn-tool { --bs-btn-padding-x: .5rem; --bs-btn-padding-y: .25rem; margin: -1rem 0; font-size: 0.875rem; } .btn-tool:not(.btn-tool-custom) { --bs-btn-color: var(--bs-tertiary-color...
CSS
true, nether, netherPlayerInOpen, caves, this.world, multi, startX, startZ, imageX, imageY); this.map[this.zoom].setRGB(imageX, imageY, color24); } } this.imageChanged = true; } private int getPixelColor(boolean needBiome, boolean needHeightA...
Java
, IG4_REG_FS_SCL_HCNT); REGDUMP(sc, IG4_REG_FS_SCL_LCNT); REGDUMP(sc, IG4_REG_INTR_STAT); REGDUMP(sc, IG4_REG_INTR_MASK); REGDUMP(sc, IG4_REG_RAW_INTR_STAT); REGDUMP(sc, IG4_REG_RX_TL); REGDUMP(sc, IG4_REG_TX_TL); REGDUMP(sc, IG4_REG_I2C_EN); REGDUMP(sc, IG4_REG_I2C_STA); REGDUMP(sc, IG4_REG_TXFLR); REGDUMP(s...
C
e left hanging. */ export function resetTimeout(req: Request, res: Response, next) { counter++; if (counter % 2 === 0) { // We need to start again the timeout time = setTimeout(() => { if (server === undefined) { // If no server is found, let's just exit process.exit(); } else ...
Typescript
the GNU General Public License // along with Nestopia; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // //////////////////////////////////////////////////////////////////////////////////////// #include "NstBoard.hpp" #include "NstBoardBmcResetBased4in1....
C++
t("4"), })) assert.False(t, gbm.ExactlyForGrants([]grant.Grant{ makeGrant("0"), makeGrant("2"), makeGrant("3"), makeGrant("4"), })) assert.False(t, gbm.ExactlyForGrants([]grant.Grant{ makeGrant("1"), makeGrant("1"), makeGrant("3"), makeGrant("4"), })) assert.False(t, gbm.ExactlyForGr...
Go
Body{}, err } content = zip } else { content = args[0] } return Body{ Path: content, Filename: filepath.Base(content), DeleteAfterTransfer: shouldzip, }, nil } package config import ( "os" "path/filepath" "reflect" "runtime" "testing" "github.com/claudiodangelis/qrcp/a...
Go
可能是特殊情況導致大腦出了線路問題。 不僅僅是為了保護得之不易的開發成果和自己的前途,還有一些別的東西。是錯誤百出的人腦中無數分析和判斷程式在缺乏理性的系統後臺運行的產物,它們互相碰撞,在短暫而激烈的討論和分析後得出一個風險遠遠大於收益收益的結論。這個結論的推論過程本身被隱藏在互不關聯的零碎資料、層層調用反復遞迴的副程式和密不透風的無意識帷幕後輕聲鼓動,而他卻拿不准那些東西到底是什麼。 總之,當時伍德就是有那麼一股豁出去的衝動,要做一些平時想都不敢想的瘋狂之事。有些事,如果他現在不做,這輩子就沒機會了。 於是伍德就這樣做了。結果就是現在SEERS成了他的上司,發號施令。他孤立無援,心驚膽戰,恐懼著遠處的追捕者和一旦被捕可能受...
Markdown
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, W...
C#
, recent_7k_scores, best_7k_scores) = match tokio::try_join!( async { api::get_user_stats(user_id) .await .map_err(Into::into) .and_then(|opt| opt.ok_or(UpdateUserError::NotFound)) }, async { api::get_user_recent_scores(user...
Rust
","accessAlways":"હમેશાં","accessNever":"નહી","accessSameDomain":"એજ ડોમેન","alignAbsBottom":"Abs નીચે","alignAbsMiddle":"Abs ઉપર","alignBaseline":"આધાર લીટી","alignTextTop":"ટેક્સ્ટ ઉપર","bgcolor":"બૅકગ્રાઉન્ડ રંગ,","chkFull":"ફૂલ સ્ક્રીન કરવું","chkLoop":"લૂપ","chkMenu":"ફ્લૅશ મેન્યૂ નો પ્રયોગ કરો","chkPlay":"ઑટો/સ્વ...
JavaScript
} } import 'package:appflowy_editor/appflowy_editor.dart'; import 'package:flutter/material.dart'; const String kDividerType = 'divider'; class DividerWidgetBuilder extends NodeWidgetBuilder<Node> { @override Widget build(NodeWidgetContext<Node> context) { return _DividerWidget( key: context.node.key,...
Dart
b": 2, "c": 3}); expect(imap2.unlock, {"a": 1, "b": 2, "c": 3, "d": 4}); expect(imap3.unlock, {"a": 1, "b": 2, "c": 3, "d": 4, "e": 5, "f": 6}); expect(imap4.unlock, {"a": 1, "b": 2, "c": 3, "d": 4, "e": 5, "f": 6, "g": 7, "h": 8}); // Methods are chainable. expect(imap1.add("d", 4).addMap({"e": 5,...
Dart
RefObjSerializer.INSTANCE, StringObjSerializer.INSTANCE, TagObjSerializer.INSTANCE, UniqueIdObjSerializer.INSTANCE, CustomObjSerializer.INSTANCE); static { Set<String> attributeNames = new HashSet<>(); ALL_SERIALIZERS.forEach( serializer -> { Stri...
Java
# Code generated by lark_sdk_gen. DO NOT EDIT. from pylark.lark_request import RawRequestReq, _new_method_option import attr import typing import io @attr.s class CreateTaskReminderReq(object): task_id: str = attr.ib( default="", metadata={"req_type": "path", "key": "task_id"} ) # 任务 ID, 示例值:"839126...
Python
"""Enum representing captured send status of outbound messages.""" from enum import Enum OUTBOUND_STATUS_PREFIX = "acapy::outbound-message::" class OutboundSendStatus(Enum): """Send status of outbound messages.""" # Could directly send the message to the connection over active session SENT_TO_SESSION =...
Python
addi a2,sp,12 5b8: 6d6f682f 0x6d6f682f 5bc: 2f65 addiw t5,t5,25 5be: 6568 ld a0,200(a0) 5c0: 6168 ld a0,192(a0) 5c2: 6f442f6f jal t5,42cb6 <__global_pointer$+0x2fce6> 5c6: 6f6c6e77 0x6f6c6e77 5ca: 64...
Assembly
blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),rp.gfm.nptable=tp(rp.gfm.nptable).replace("hr",rp.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("...
JavaScript
Debug.Log("Client disconnected: " + clientSocket.RemoteEndPoint.ToString()); clientSocket.Shutdown(SocketShutdown.Both); clientSocket.Close(); connectedClients.Remove(clientSocket); } } public void Send(string message) { foreach (Socket item i...
C#
18C8 /* AE8A1C 8007187C 44199000 */ mfc1 $t9, $f18 /* AE8A20 80071880 44819000 */ mtc1 $at, $f18 /* AE8A24 80071884 24190001 */ li $t9, 1 /* AE8A28 80071888 46122481 */ sub.s $f18, $f4, $f18 /* AE8A2C 8007188C 44D9F800 */ ctc1 $t9, $31 /* AE8A30 80071890 00000000 */ nop /* AE8A34 80071894 460094A4 */ c...
Assembly
br.call.sptk brp = KiReadyThread // call KiReadyThread(OldTh) ;; mov gp = rKerGP // restore gp mov s0 = rPrcb // setup call br.call.sptk brp = SwapContext // call SwapContext(Prcb, OldTh, NewTh) ;; // Restore sav...
Assembly
nil}, [73188] = {"Morcego da Caverna Capturado",nil}, [73191] = {"Defensor Aquos",nil}, [73192] = {"Espreitador Invisível",nil}, [73193] = {"Filhote",nil}, [73194] = {"Escorpião de Ferro Kor'kron",nil}, [73195] = {"Carcereiro Kor'kron",nil}, [73196] = {"Tigre",nil}, [73197] = {"Poça de Sha Inferior",nil}, [73198] = {"B...
Lua
n".join(msg_parts) raise WaiterTimeoutError(msg) def until(self, predicate: Callable[[T], bool] | None = None) -> T: return self._poll(predicate=predicate or operator.truth) def until_not(self) -> T: return self._poll(predicate=operator.not_) def until_equal_to(self, value: T) -> ...
Python
поэтому лучше его использовать для таблиц-словарей. <p align="center"> <img src="./../png/gp_distributed_broadcast.png" alt="Реплицируемая дистрибуция" width="640" height="320"/> </p> Код создания такой таблицы выглядит следующим образом: ``` CREATE TABLE ... DISTRIBUTED REPLICATED; ``` **Важно** всегда явно п...
Markdown
`is_valid`) -- @param[type=string] name -- @treturn string `uuid`: a v5 (namespaced) UUID. -- @treturn string `err`: a string describing an error -- @usage -- local uuid = require 'resty.jit-uuid' -- -- local u = uuid.generate_v5('e6ebd542-06ae-11e6-8e82-bba81706b...
Lua
ChatAttributes> = {}) { super(); Object.assign(this, chat); } /** * Load this instance with raw data from Youtube * * @hidden */ load(data: YoutubeRawData): Chat { const { id, message, authorName, authorPhoto, timestampUsec, authorExternalChannelId, } = data; // Basic informatio...
Typescript
local Cue = class("Cue", function() return cc.Sprite:createWithSpriteFrameName("eightBall_Cue.png") end) local m_RootBall --杆子构造函数 --@_root 母球(这里是白球) --构造函数传参,母球引用保留 function Cue:ctor(_root) m_RootBall = _root self:setAnchorPoint(1,0.5) self:setTag(g_EightBallData.g_Border_Tag.cue) local pos = _root:g...
Lua
>( order: Order, orderBy: Key ): ( a: { [key in Key]: number | string }, b: { [key in Key]: number | string } ) => number { return order === "desc" ? (a, b) => descendingComparator(a, b, orderBy) : (a, b) => -descendingComparator(a, b, orderBy); } export type Order = "asc" | "desc"; function descendi...
Typescript
Y_WRAP key wrapping * scheme defined in the PKCS #11 standard. In summary, this involves * wrapping the raw key with an ephemeral AES key, and wrapping the * ephemeral AES key with a 3072 bit RSA key. For more details, see * [RSA AES key wrap * mechanism](http://docs.oasis-open.org/pkcs11/pkcs1...
Java
(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\257\001\n" + "\023AnswerQueryResponse\022<\n" + "\006answer\030\001 \001(\0132,.google.cloud.discoveryengine.v1alpha.Answer\022>\n" + "\007session\030\002 \001(\0132-.google.cloud.discoveryengine.v1alpha.Session\022\032\n" ...
Java
": "1841156", "accessionNum": "000095017023026443", "ticker": "pay", "dateString": "20230601", "formType": "8-K", "factCount": 24 }, { "version": "2.2", "instance_file": "evoa-20230530.htm", "link": "?doc=filings/0000950170-23-026445/evoa-20230530.htm", "size": false, "sec": "https://www.sec.gov/A...
JavaScript
/*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2001 David E. O'Brien * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * not...
C
normalizePoints', () => { const points = [ { x: 10, y: 10 }, { x: 12, y: 12 }, { x: 15, y: 15 }, { x: 20, y: 20 }, ]; it('should normalize x-values and y-values.', () => { const expectedResult = normalizePointsX(normalizePointsY(points)); const normalizeYPoints = normalizePoints...
Typescript
<table> <tbody><tr> <td>攻击力</td> <td>0 </td></tr> <tr> <td>攻击属性/等级</td> <td>中段打击/大 </td></tr> <tr> <td>发生 / 持续</td> <td>17F /各角色不同 </td></tr> <tr> <td>硬直差</td> <td>各角色不同 </td></tr> <tr> <td>LIMIT</td> <td>100% </td></tr> <tr> <td>符力增加</td> <td>0 </td></tr> <tr> <td>COUNTER</td> <td>予:× / 被:× </td></tr> <tr> <td>命中效果<...
Markdown
ery an intent on a different key for the same transaction. Should not // see an intent. keyPrevent := roachpb.Key(fmt.Sprintf("%s-%t-%d", key2, errIfMissing, i)) queryIntent(keyPrevent, txn.TxnMeta, baTxn, false) // Query an intent on the same key for a different transaction. Should not // see an intent...
Go
.example", "source", "post"), resource.TestCheckResourceAttr("tencentcloud_waf_cc_session.example", "category", "match"), resource.TestCheckResourceAttr("tencentcloud_waf_cc_session.example", "key_or_start_mat", "key_a=456"), resource.TestCheckResourceAttr("tencentcloud_waf_cc_session.example", "end_mat"...
Go
e($x, $y) { -webkit-transform: translate($x, $y); -ms-transform: translate($x, $y); // IE9+ transform: translate($x, $y); } @mixin skew($x, $y) { -webkit-transform: skew($x, $y); -ms-transform: skewX($x) skewY($y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+ transform:...
CSS
cale::Mongolia: case QLocale::NewZealand: case QLocale::NorthernMarianaIslands: case QLocale::Pakistan: case QLocale::Philippines: case QLocale::RepublicOfKorea: case QLocale::Singapore: case QLocale::SyrianArabRepublic: case QLocale::Taiwan: case ...
C++
, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _reent__bindgen_ty_1__bindgen_ty_1 { pub _unused_rand: libc::c_uint, pub _strtok_last: *mut libc::c_char, pub _asctime_buf: [libc::c_char; 26usize], pub _localtime_buf: __tm, pub _gamma_signgam: libc::c_int, pub __bindgen_padding_...
Rust
""" Creates a redshift-dependent cooling box such that it always has the same _physical_ density at the given redshift. """ from swiftsimio import Writer from swiftsimio.units import cosmo_units from unyt import mh, cm, s, K, Mpc, kb import numpy as np import h5py # Physics parameters. boxsize = 1.0 * Mpc physical_...
Python
0,150,.7)}.km-meego .k-slider-horizontal{height:.4em}.km-meego .k-slider-vertical{width:.4em}.km-meego .k-slider .k-draghandle,.km-meego .k-slider .k-draghandle:hover{border:0;background-color:#eee;border-radius:2em;background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.6)),to(rgba(255,255...
CSS
using System.Threading; using System.Threading.Tasks; namespace DidactCore.Flows { public interface IFlowExecutor { /// <summary> /// Asynchronously retrieves the next available FlowRun from persistent storage. /// </summary> /// <returns></returns> Task<FlowRunDto> Fet...
C#
View(), map); } catch (Exception e) { String userName = (String) request.getSession().getAttribute( Constants.USER_INFO); logger.error("用户" + userName + "删除笔记异常|方法:deleteNote|参数:oldNoteName:" + oldNoteName + ";noteRowKey:" + noteRowKey + ";noteBookRowkey:" + noteBookRowkey, e); e.printSta...
Java
="keyexpansion", ["en"]="keyexpansion", ["fr"]="expansioncle", ["it"]="keyexpansion", ["nl"]="sleutelexpansie", ["pe"]="گسترش‌کلید", ["ro"]="keyexpansion", }, ["keys"]={ ["en"]="keys", ["fr"]="cles", ["nl"]="sleutels", }, ["keyword"]={ ["cs"]="keyword", ["de"]="keyword", ["en...
Lua
if (profession.getSkillId() == skillId) return profession; } return null; } } package com.aionemu.gameserver.model.geometry; import java.util.Collection; import com.aionemu.gameserver.configs.main.WorldConfig; import com.aionemu.gameserver.model.templates.zone.Point2D; import com.aionemu.gameserver.utils....
Java
function date_translator(input, seg) if (input == "rq") then --- Candidate(type, start, end, text, comment) yield(Candidate("date", seg.start, seg._end, os.date("%Y-%m-%d"), "")) yield(Candidate("date", seg.start, seg._end, os.date("%Y年%m月%d日"), "")) yield(Candidate("date", seg.start...
Lua
':scheme': 'http', ':authority': `localhost:${port}` }; const request = client.request(headers); request.on('end', common.mustCall(function() { client.destroy(); })); request.end(); request.resume(); })); })); // Copyright Joyent, Inc. and other Node contributors. // // Permission ...
JavaScript
/* ********************************************************** * Copyright (c) 2012-2025 Google, Inc. All rights reserved. * **********************************************************/ /* Dr. Memory: the memory debugger * * This library is free software; you can redistribute it and/or * modify it under the terms ...
C
ID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg ...
Dart
sist.rild.nitz_long_ons_2= persist.rild.nitz_long_ons_3= persist.rild.nitz_short_ons_0= persist.rild.nitz_short_ons_1= persist.rild.nitz_short_ons_2= persist.rild.nitz_short_ons_3= ril.subscription.types=NV,RUIM DEVICE_PROVISIONED=1 # # Set network mode to (T/L/G/W/1X/EVDO, T/L/G/W/1...
Kotlin
_data?.asStableRef<Entry>()?.get()?.onPopulatePopup?.emit(widget?.reinterpret()) } private fun Entry_onPreeditChanged_Handler( sender: CPointer<in CPointed>?, preedit: CPointer<ByteVar>, _data: COpaquePointer? ) { _data?.asStableRef<Entry>()?.get()?.onPreeditChanged?.emit(preedit.toKString()) } pr...
Kotlin
个样本") if stats["format_errors"]: print("\n⚠️ 格式错误样本数: {}".format(len(stats['format_errors']))) self.print_sample_list(stats["format_errors"][:3]) if stats["invalid_role_sequence"]: print("\n⚠️ 角色序列异常样本数: {}".format(len...
Python
vides space for data items to read /// - bufr: provides more data to read /// - n_pos: how many items to read /// postconditions fn split_step( posa: &mut Vec<MPosDTM>, posb: &mut Vec<MPosDTM>, unsorted: &str, c_name: &str, bufr: &mut BufReader<File>, n_pos: usize, ) -> Result<(usize, bool), Str...
Rust
namespace Gma.QrCodeNet.Encoding.EncodingRegion; internal static class BCHCalculator { /// <summary> /// Calculate int length by search for Most significant bit /// </summary> /// <param name="num">Input Number</param> /// <returns>Most significant bit</returns> internal static int PosMSB(int num) => num == 0 ? ...
C#
class Solution: def rob(self, nums: List[int]) -> int: current, highest = 0,0 for n in nums: temp = max(n + current, highest) current = highest highest = temp return highest
Python
"Costa Sul", }, [539] = { ["D"] = "O Cartório de Eira dos Montes indica que a Mina Veioazul está sob controle da Aliança. Além disso, a mina é uma fonte primária de minério de ferro para o arsenal deles.$b$bApesar do nosso ataque decisivo contra a cidade de Eira dos Montes, a Aliança ainda protege Veioazul com ...
Lua
) -> BoxStream<'static, crate::Result<(Self::Shard, crate::store::Store)>> { Box::pin(stream::iter(1..=3).map(|_| Err(Error::Unimplemented))) .map_ok(|_: u8| (42, mock_store())) .boxed() } fn apply_shard(&mut self, _: Self::Shard, _: &crate::store::Store) -> ...
Rust
Material"), NULL, LOAD_None, NULL); check(AxisMaterialBase); TransparentPlaneMaterialXY = (UMaterial*)StaticLoadObject( UMaterial::StaticClass(), NULL, TEXT("/SodaSim/Assets/CPP/EditorMaterials/WidgetVertexColorMaterial.WidgetVertexColorMaterial"), NULL, LOAD_None, NULL); check(TransparentPlaneMaterialXY); Gr...
C++
;transition:opacity .2s ease-in;width:auto;opacity:1}#fp-nav ul li .fp-tooltip.right{right:20px}#fp-nav ul li .fp-tooltip.left{left:20px}.fp-auto-height.fp-section,.fp-auto-height .fp-slide,.fp-auto-height .fp-tableCell,.fp-responsive .fp-auto-height-responsive.fp-section,.fp-responsive .fp-auto-height-responsive .fp-s...
CSS
callee's predicate state from the stack pointer. unsigned NewStateReg = extractPredStateFromSP(MBB, InsertPt, Loc); // Test the expected return address against our actual address. If we can // form this basic block's address as an immediate, this is easy. Otherwise // we compute it. if (MF.getTarget().getCod...
C++
; std::atomic_flag err_flag = ATOMIC_FLAG_INIT; std::exception_ptr eptr; #pragma omp parallel num_threads(num_threads) { auto tid = omp_get_thread_num(); auto chunk_size = divup((end - begin), num_threads); auto begin_tid = begin + tid * chunk_size; if (begin_tid < end) { auto end_tid = std:...
C
//======= Copyright (c) Valve Corporation, All rights reserved. =============== // // Purpose: This object can be set on fire // //============================================================================= using UnityEngine; using System.Collections; namespace Valve.VR.InteractionSystem { //---------------------...
C#
EMSCRIPTEN__) && defined(__SSE2__)) # define VORBIS_FPU_CONTROL typedef ogg_int16_t vorbis_fpu_control; #include <emmintrin.h> static __inline int vorbis_ftoi(double f){ return _mm_cvtsd_si32(_mm_load_sd(&f)); } static __inline void vorbis_fpu_setround(vorbis_fpu_control *fpu){ (void)fpu; } static __inline v...
C
#[derive(Debug, AperCodec)] #[asn(type = "ENUMERATED", extensible = true, lb = "0", ub = "0")] pub struct DL_Forwarding(pub u8); impl DL_Forwarding { pub const D_L_FORWARDING_PROPOSED: u8 = 0u8; } #[derive(Debug, AperCodec)] #[asn(type = "BITSTRING", sz_extensible = false, sz_lb = "16", sz_ub = "16")] pub struct D...
Rust
} {LASTNAME}"; elseif n == 3 then return "Dame {FIRSTNAME_F} {LASTNAME}"; elseif n == 4 then return "Warlord {LASTNAME}"; elseif n == 5 then return "Highness {LASTNAME}"; end end
Lua
} pageWriter.println("];"); pageWriter.print("clusteredPageMix = ["); for (int j = 0; j < globalTableList.length; ++j) { pageWriter.print(allOperationAvg[j] / actualTransactions.size() + " "); } pageWriter.println("];"); pageWriter.flush(); pageWriter.close(); } private void printClusterAccAn...
Java
on vsc@.xc@embeder@Check.q2kwr#basic_string.c#char_traits.c~#allocator.c~~ virtual [bits 32] @.xc@embeder@Check.q2kwr#basic_string.c#char_traits.c~#allocator.c~~: dd 00h dd 0fffffc78h dd 0400h dd @.xt@12embeder_info+0 dd 0ffffff58h dd ...
Assembly
event := range order.DomainEvents() { if event.Identity() == "BaristaOrdered" { eventBytes, err := json.Marshal(event) if err != nil { return errors.Wrap(err, "json.Marshal[event]") } uc.baristaEventPub.Publish(ctx, eventBytes, "text/plain") } if event.Identity() == "KitchenOrdered" { eventB...
Go
069: XNOR_I xnor %r16, 0x0e25, %r9 .word 0x9a140011 ! 1069: OR_R or %r16, %r17, %r13 .word 0xb8040011 ! 1069: ADD_R add %r16, %r17, %r28 .word 0xb8b40011 ! 1069: ORNcc_R orncc %r16, %r17, %r28 .word 0x842c0011 ! 1069: ANDN_R andn %r16, %r17, %r2 .word 0xb00c2114 ! 1069: AND_I and %r16, 0x0114, %r24 .wo...
Assembly
", **result) # Copy temporary file to destination if necessary backup_file = None if result['checksum_src'] != result['checksum_dest']: try: if backup: if os.path.exists(dest): backup_file = module.backup_local(dest) module.atomic_move(tmp...
Python
erride; }; } // namespace bogaudio #pragma once #include "Matrix88_shared.hpp" namespace bogaudio { typedef ChainableExpanderModule<Matrix88ExpanderMessage, Matrix88Element, 1, MutesMatrixExpanderModule> Matrix88MBase; struct Matrix88M : Matrix88MBase { enum ParamsIds { MUTE11_PARAM, MUTE21_PARAM, MUTE31_PA...
C++
IVX_R sdivx %r8, %r9, %r4 .word 0x2e800001 ! 836: BVS bvs,a <label_0x1> .word 0x86722158 ! 836: UDIV_I udiv %r8, 0x0158, %r3 .word 0x8a022a6c ! 838: ADD_I add %r8, 0x0a6c, %r5 .word 0x8a022128 ! 838: ADD_I add %r8, 0x0128, %r5 .word 0x86022008 ! 838: ADD_I add %r8, 0x0008, %r3 IDLE_INTR_452: !$EV trig_pc_...
Assembly
Stub).to.have.been.calledOnce; const edgeId = context.mutation.globalIds.pop(); expect(addEdgeStub).to.have.been .calledWith(edgeId, id, 'comments', commentId, 'commentOn', undefined); }); it('addEdge adds an edge by Node object and without props', async () => { const id = newGlobalId('Post'); ...
JavaScript
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Resolve documents and patron for order lines.""" import jsonresolver from werkzeug.routing import Rule from i...
Python
�� 번째 줄부터 1+M 번째 줄까지, 각 줄마다 N 개의 0이상 K 이하 정수가 주어진다. 입력의 1+i번째 줄의 j번째 정수는 행렬 A 의 i번째 행, j번째 열에 위치한 원소를 의미한다.</p> ### 출력 <p>M-W+1줄에 걸쳐 정답 행렬 B를 출력한다.</p> # [Silver IV] 카드 놓기 - 5568 [문제 링크](https://www.acmicpc.net/problem/5568) ### 성능 요약 메모리: 33948 KB, 시간: 36 ms ### 분류 백트래킹, 브루트포스 알고리즘, 자료 구조, 해시를 사용한 집합과 맵 #...
Markdown