content
stringlengths
2
6.21k
label
stringclasses
16 values
// 7zAes.h #ifndef ZIP7_INC_CRYPTO_7Z_AES_H #define ZIP7_INC_CRYPTO_7Z_AES_H #include "../../Common/MyBuffer.h" #include "../../Common/MyCom.h" #include "../../Common/MyVector.h" #include "../ICoder.h" #include "../IPassword.h" namespace NCrypto { namespace N7z { const unsigned kKeySize = 32; const unsigned kSaltS...
C
['CNPJ'] = Variable<String>(cnpj); } if (!nullToAbsent || inscricaoEstadual != null) { map['INSCRICAO_ESTADUAL'] = Variable<String>(inscricaoEstadual); } if (!nullToAbsent || inscricaoMunicipal != null) { map['INSCRICAO_MUNICIPAL'] = Variable<String>(inscricaoMunicipal); } if (!nullT...
Dart
tIndex - 1), back_max, -1 do local taunt = taunts[i] if not taunt then break end local alpha = (1 - (x / 4)) * 50 DrawTauntElement(taunt.Name, xpos, 1.2 - (x / 3), alpha) x = x + 1 xpos = xpos - 35 - math.pow(x + 1, 1.1) end xpos = (3 * 20) + math.pow(3, 1.2) + 4...
Lua
{ setupInfoPlist(executableName = appExecutableFile.name) writeToFile(contentsDir.resolve("Info.plist")) } if (!composeResourcesDirs.isEmpty) { fileOperations.copy { copySpec -> copySpec.from(composeResourcesDirs) copySpec.into(appReso...
Kotlin
d1.cast() * ``` */ class UUID<T> : Comparable<UUID<T>> { companion object { val mask = 0xffffffff.toULong() val NIL = UUID<Any>(IntArray(4) { 0 }, 0) @OptIn(ExperimentalObjCName::class) @Suppress("UNCHECKED_CAST") @ObjCName("getNil") fun <T> nil() = NIL as UUID<T>...
Kotlin
;height:123px;z-index:3;background:url(https://media.eol.org//assets/v2/video_play.png) no-repeat 50% 50% transparent}#media_list #main>ul>li form{display:block;clear:both}#media_list #main>ul>li form.taxon_concept_exemplar_image input[type="submit"]{position:absolute;top:95px;right:0;z-index:3}p.flag,span.flag{color:#...
CSS
�人观察者:追踪现金和投资组合的价值。 - 交易观察者:记录每笔交易的效果。 - 买卖观察者:记录操作的执行时间。 如果不需要这些标准观察者,可以通过 `stdstats=False` 禁用它们。 ## 返回回测结果 回测执行后,`Cerebro` 会返回策略实例,供你分析回测结果。你可以访问策略中的所有元素进行详细检查: ```python result = cerebro.run(**kwargs) ``` ### 优化时的返回结果 - 如果没有使用优化,`result` 将是一个策略实例列表。 - 如果进行了优化,`result` 将是一个列表的列表,每个内部列表对应一次优化运行后的策略实例。 **注意**:优化...
Markdown
_defval; pGateModule.propertys["position"] = pGate_position; pGateModule.usePropertyDescrAlias = true; pGateModule.idpropertys[(UInt16)pGate_position.aliasID] = pGate_position; //Dbg.DEBUG_MSG("EntityDef::initScriptModules: add(Gate), property(position / 40000)."); Property pGate_direction = new Prop...
C#
6(0x02, 0x06, 0, 0, 0) OP_C4(0x01, 0x00000010) FadeIn(2000, 0) OP_0D() Sleep(500) ChrTalk( 0x0101, ( '#0010330342V#1020F#4P…………………………………', TxtCtl.Enter, TxtCtl.Clear, '#0010330343V……为……什么……', TxtCtl.Enter, TxtCt...
Python
ch input.fm-input::-webkit-search-cancel-button { background-color: #2e2e2f; } .search input.fm-input::-webkit-search-cancel-button { appearance: none; margin: 0; height: 21px; width: 21px; opacity: 0; pointer-events: none; background-size: 21px; background-position: right 1px center; position: abso...
CSS
': 'EX', }, { 'name': '卡羅萊納長尾鸚鵡', 'name_en': 'Carolina Parakeet', 'name_ja': 'キャロライナインコ', 'image': 'https://upload.wikimedia.org/wikipedia/commons/thumb/b/bd/Conuropsis_carolinensis_%28Carolina_parakeet%29.jpg/1200px-Conuropsis_carolinensis_%28Carolina_parakeet%29.jpg', 'level': 'EX', ...
Dart
urn NewFileCacheByPath("runtime/cache/") } //NewFileCacheByPath func NewFileCacheByPath(path string)icache.ICacher{ f:=&FileCache{} return f.SetPath(path) }package redis import ( "fmt" "sync" "github.com/garyburd/redigo/redis" "github.com/wjp-letgo/letgo/file" "github.com/wjp-letgo/letgo/lib" "github.com/wjp-...
Go
o.freeSpaceBytes = 'foo'; o.partitions = buildDiskPartitionList(); o.totalCapacityBytes = 'foo'; } buildCounterDiskPartitionDetails--; return o; } void checkDiskPartitionDetails(api.DiskPartitionDetails o) { buildCounterDiskPartitionDetails++; if (buildCounterDiskPartitionDetails < 3) { unittest....
Dart
$nvec(96),k_ptr S8(B(4), B(26), B(14), B(20)) decl rounds_and_swapped jnz DES_bs_crypt_start subl $nvec(0x300+48),k_ptr movl $0x108,rounds_and_swapped decl iterations jnz DES_bs_crypt_swap popl %esi popl %ebp #ifdef EMMS emms #endif ret DES_bs_crypt_next: subl $nvec(0x300-48),k_ptr movl $8,rounds_and_swapp...
Assembly
and run the `redis-server.exe` file. - Verify the server is running: ```bash redis-cli ping ``` Expected output: `PONG` --- ### **2. How to Run Simple Operations with the Redis Client** 1. Start the Redis CLI: ```bash redis-cli ``` 2. Perform basic operations: - **Set a key**: ```b...
Markdown
#pragma once #include "picopass.h" #include "picopass_worker.h" #include "picopass_device.h" #include "rfal_picopass.h" #include <furi.h> #include <gui/gui.h> #include <gui/view_dispatcher.h> #include <gui/scene_manager.h> #include <notification/notification_messages.h> #include <gui/modules/submenu.h> #include <gu...
C
"twenty", "twice", "twin", "twist", "two", "type", "typical", "ugly", "umbrella", "unable", "unaware", "uncle", "uncover", "under", "undo", "unfair", "unfold", "unhappy", "uniform", "unique", "unit", "universe", "unknown", "unl...
Rust
iaz", config.BossPosition, true, true) for d = 1, #config.deathDragons do Game.createMonster('Death Dragon', config.deathDragons[d], true, true) end for x = 33456, 33460 do local playerTile = Tile(Position(x, 32356, 13)):getTopCreature() if playerTile and playerTile:isPlayer() then playerTile:getPosi...
Lua
z'/%3E %3C/defs%3E %3Cg fill='none' fill-rule='evenodd'%3E %3Cmask id='a62bde5b-af55-42c8-87f2-e10e8a48baa0-b' fill='%23fff'%3E %3Cuse xlink:href='%23a62bde5b-af55-42c8-87f2-e10e8a48baa0-a'/%3E %3C/mask%3E %3Cg mask='url(%23a62bde5b-af55-42c8-87f2-e10e8a48baa0-b)'%3E %3Cg transform='translate(0 -2....
CSS
# -*- coding: utf-8 -*- """Slot Loader.""" import logging import sys from importlib import import_module from unirobot.utils.unirobot_slot import FULL_MODEL from unirobot.utils.unirobot_slot import DATALOADER from unirobot.utils.unirobot_slot import DATASET from unirobot.utils.unirobot_slot import EVALUATOR from uniro...
Python
If set, all spans derived from this context are being recorded. recordingType RecordingType // sterile is set if this span does not want to have children spans. In that // case, trying to create a child span will result in the would-be child being // a root span. This is useful for span corresponding to long-runn...
Go
_update # handle a few events, or timeout self._poll(msg_update) self._results = [] _winapi.CloseHandle(self._iocp) self._iocp = None def __del__(self): self.close() class _WindowsSubprocessTransport(base_subprocess.BaseSubprocessTransport): def _st...
Python
y, } return {'url': url, 'method': method, 'body': body, 'headers': headers} def handle_errors(self, code: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody): # # { # "title":"io.javalin.http.BadRequestResp...
Python
for k, v in ipairs(groups) do local dungeonData = DungeonMgr:GetDungeonData(v) if dungeonData and dungeonData:IsPass() then cur = cur + 1 end end max = #groups end return cur,max end -- 返回当前是否开启 function this:IsOpen() local groups = se...
Lua
.isNaN(longitude) || Double.isInfinite(longitude) || longitude < MIN_LONGITUDE || longitude > MAX_LONGITUDE) { throw new PrestoException(INVALID_FUNCTION_ARGUMENT, "Longitude must be between -180 and 180"); } } public static Double sphericalDistance(OGCGeometry leftGeometry, OGCGeometry rig...
Java
seA7Uvm9O08LgSyicnq3YacknEX2OibicickuST4nia0NqCwKt0g/640?wx_fmt=png&from=appmsg "") **思路:尝试修改userid尝试越权;这里还有一个出乎我意料的点,就是居然有mobile这个字段,修改手机号本应该是需要验证码等手段经过授权才能够修改的,但是这里就直接出现了,这个思考也是直接引起了后面的漏洞。** ``` 信息字段汇总 user.userId= user.sex=1 user.showName user.subject mobile= user.email user.picImg=/imag/xxxxx/089...
Markdown
} break; }, _ => return None, } let mut position = 10.0; // Parse fraction match self.iter.peek() { Some((_, '.')) => { self.iter.next(); // Parse fraction loop { ...
Rust
est] [Category("Performance")] [Ignore("Prevent running on Jenkins")] public async Task ClientServerRunner() { var config = new ClientConfig { ServerTargets = { string.Format("{0}:{1}", "localhost", serverRunner.BoundPort) }, RpcTyp...
C#
보상 아이템", [39138] = "치명적인 칼날투창", [39139] = "파괴의 발덮개", [39140] = "절개검", [39141] = "재빠른 회피의 고리", [39142] = "노예의 철퇴", [39143] = "비틀린 철퇴", [39144] = "비뚤어진 난동자용 몽둥이", [39145] = "얼음왕관 퀘스트 보상 아이템", [39146] = "소멸의 목줄", [39147] = "58Kg 황새치", [39148] = "새끼 산호껍질 거북", [39149] = "\"점박이\"", [39150] = "신성한 장신구", [39151] = "설화석고 안료", ...
Lua
yout.isEnabled = !show } private fun exp(i: Int): Int { //等级计算是反编译源码找到的 return 100 * i * i + (100 * i) } private fun getWindowHeight(): Int { return resources.displayMetrics.heightPixels } private fun getWindowWidth(): Int { return resources.displayMetrics.widt...
Kotlin
EM_GETEDITCONTROL = (0x0400+7), CBEM_SETEXSTYLE = (0x0400+8), CBEM_GETEXSTYLE = (0x0400+9), CBEM_HASEDITCHANGED = (0x0400+10), CBEM_INSERTITEMW = (0x0400+11), CBEM_SETITEMW = (0x0400+12), CBEM_GETITEMW = (0x0400+13), CBES_EX_NOEDITIMAGE = 0x00000001, CBES_EX_NOEDITIMAGEINDENT = 0x0000000...
C#
nLinearEnergyConsumptionModel { phi_min, alpha, beta, } } } impl EnergyConsumptionModel { /// Energy consumption of a server of some type with utilization $s$. /// Referred to as $\phi$ in the paper. pub fn consumption( &self, delta: f64, ...
Rust
starting index to use when attempting to decode the /// raw data. Typically/Defaults to kStartOffset. /// @param[in] nbits The number of data bits to expect. /// @param[in] strict Flag indicating if we should perform strict matching. /// @return A boolean. True if it can decode it, false if it can't. bool IRrecv::de...
C++
e. Second line. Third line. '''; expectCorrectDocumentation(); }); }); group('truncateString', () { test('normal', () { expect(truncateString('foo bar baz qux', 100), hasLength(15)); }); test('truncates', () { expect(truncateString('foo bar baz qux', 10), ha...
Dart
(a4),d0 move.b d7,$14(a4) cmp.w d0,d2 beq.s mt_clrport bge.s mt_com2 move.b #1,$14(a4) bra.s mt_com2 mt_clrport: move.w d7,$16(a4) rts mt_noloop: move.l d0,$a(a4) mt_hejaSverige: move.w (a3),$e(a4) mt_oldinstr: move.w (a4),d3 and.w d4,d3 beq.s mt_com2 tst.w 8(a4) beq.s mt_stopsound move.b 2(a4),d0 an...
Assembly
添加其上的DOM节点 */ export interface DOMContainer extends DOMBase { parent: DOMContainer children: DOMBase[] appendChild(child: DOMBase): this removeChild(child: DOMBase): this }import { artistAlbumsLoaded, artistSongsLoaded, artistsSet, CmusUIActionType } from '../actions'; import { stateWithActiveArt...
Typescript
is subject to applicable law. - Canyon GBS LLC respects the intellectual property rights of others and expects the same in return. Canyon GBS™ and Aiding App™ are registered trademarks of Canyon GBS LLC, and we are committed to enforcing and protecting our trademarks vigorously. - The s...
CSS
return self._defined_tags @defined_tags.setter def defined_tags(self, defined_tags): """ Sets the defined_tags of this OceInstanceSummary. Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` ...
Python
mp dl, 0x80 jne 0f mov dl, al # 0x80 -> cs:pt jmp 1f 0: cmp dl, al # cs:pt -> 0x80 jne 1f mov dl, 0x80 1: pop ax ret # --------------------------------------------------------------------------- .if DEBUG print_hex: # Hex dump of AH,DL pusha mov cx, 0x04 mov dh, ah 0: rol dx, 0x04 mov ax, 0xe0f...
Assembly
_not_null(isAsync); AssertSql( """ @p='False' SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` WHERE @p = TRUE """); ...
C#
u{102f}\u{1036}းများ ပြ\u{102f}\u{1036}းနေသည\u{1037}\u{103a} အပြ\u{102f}\u{1036}းမျက\u{103a}န\u{103e}ာ", ), keywords: &[ "ပြ\u{102f}\u{1036}းနေသည\u{1037}\u{103a}မျက\u{103a}လ\u{102f}\u{1036}းများဖြင\u{1037}\u{103a} အပြ\u{102f}\u{1036}းမျက\u{103a}န\u{103e}ာ", "ပြ\u{...
Rust
cells[7] { t.Error("Incorrect alignment cell 5 South") } _, inNorthBoundary := d.northBoundary.index(cells[5].north.array()[0]) if len(cells[5].north.array()) != 1 || !inNorthBoundary { t.Error("Incorrect alignment cell 5 North") } if len(cells[5].east.array()) != 1 || cells[5].east.array()[0] != cells[9] { ...
Go
orySlotClickedData { EquipTarget slot; void save(Serial::Saver& saver) const; void load(Serial::Loader& loader); }; struct SetActiveSpellData { SpellId spell; void save(Serial::Saver& saver) const; void load(Serial...
C
ah menjanjikan kepada Musa (memberikan Taurat) tiga puluh malam, dan Kami sempurnakan jumlah malam itu dengan sepuluh (malam lagi), maka sempurnalah waktu yang telah ditentukan Tuhannya empat puluh malam. Dan Musa berkata kepada saudaranya (yaitu) Harun, \"Gantikanlah aku dalam (memimpin) kaumku, dan perbaikilah (dirim...
Dart
&self.min_value } pub fn get_max_val(&self) -> &Option<Row> { &self.max_value } pub fn get_full_name(&self, partition_id: u64) -> Option<String> { partition_file_name(self.parent_partition_id, partition_id) } pub fn to_active(&self, active: bool) -> Partition { ...
Rust
ments); getJSClass( ContentRule(arguments, bogusSpan), ).defineGetter('arguments', (ContentRule self) => self.arguments); getJSClass( FunctionExpression('a', arguments, bogusSpan), ).defineGetter('arguments', (FunctionExpression self) => self.arguments); getJSClass( IfExpression(arguments, bogusSp...
Dart
static Future<MastodonPost> fromFeedView(bsky.FeedView view) async { final post = view.post; // Determine if this is a repost. final repost = view.reason?.map( repost: (repost) => repost, unknown: (_) => null, ); final isRepost = repost != null; // Process facets such as mentions...
Dart
codigoMunicipio, this.nomeMunicipio, this.uf, this.cep, this.codigoPais, this.nomePais, this.telefone, this.email, this.inscricaoEstadual}); @override Map<String, Expression> toColumns(bool nullToAbsent) { final map = <String, Expression>{}; if (!nullToAbsent ...
Dart
PVAL U3 CAPTURE VAL R0 SETTABLEKS R11 R10 K11 ["OnClick"] SETLIST R7 R8 3 [1] SETTABLEKS R7 R6 K6 ["HorizontalItems"] CALL R4 2 -1 RETURN R4 -1 MAIN: PREPVARARGS 0 GETIMPORT R0 K1 [script] LOADK R2 K2 ["AvatarSettings"] NAMECALL R0 R0 K3 ["FindFirstAncestor"] CALL R0 2 1 GETIMPORT R1 K5 [game] ...
Assembly
.equals(other.swidFunctionType, swidFunctionType))); } @override int get hashCode => runtimeType.hashCode ^ const DeepCollectionEquality().hash(swidFunctionType); @JsonKey(ignore: true) @override _$$DartUnpackClosuresCtorCopyWith<_$DartUnpackClosuresCtor> get copyWith => ...
Dart
is not available") return ctrl.Result{}, nil } var mcoIsNotFound bool // Fetch the MultiClusterObservability instance mco := &mcov1beta2.MultiClusterObservability{} err := r.Client.Get(ctx, types.NamespacedName{Name: config.GetMonitoringCRName()}, mco) if err != nil { if k8serrors.IsNotFound(err) { mcoIs...
Go
count; this._realData.meta.next_token = result.meta.next_token; this._realData.data.push(...result.data); } else { this._realData.meta.newest_id = result.meta.newest_id; this._realData.meta.result_count += result.meta.result_count; this._realData.data.unshift(...result.data); }...
Typescript
ush((word.to_string(), freq.clone())); }); vec.sort_by(|x, y| x.0.cmp(&y.0)); for (word, freq) in vec { writeln!(f, "{:>32}: {}", word, freq)?; } Ok(()) } }<filename>hermes/src/client.rs use crate::connection::Connection; use crate::message::{Message, Messageable}...
Rust
-moz-border-radius: 2px; border-radius: 2px; border: 1px solid; border-color: #b8b8b8 #dcdcdc #dcdcdc #b8b8b8; background: url(../images/common.gif) 0px 0px no-repeat; } input.text[type=file], input.text[type=checkbox] { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } input.text:hover { ...
CSS
innerQuery, Occur.MUST_NOT); FieldQuery fq = new FieldQuery(booleanQuery, true, true ); Set<Query> flatQueries = new HashSet<>(); fq.flatten(booleanQuery, reader, flatQueries); assertCollectionQueries( flatQueries, tq( boost, "A" ), tq( boost, "B" ), tq( boost, "C" ) ); } public void testFlattenDi...
Java
数据状态}} \rho_{\text{数据→计算}}(\mathbf{X}) d\mu(\mathbf{X})$$ 其中$\rho_{\text{数据→计算}}$是数据转化为计算的潜力密度。 **能量的信息本质**: 能量是数据中蕴含的**信息变化可能性**: - **动能**:当前数据的即时计算激活 - **势能**:数据的潜在计算可能性 - **总能量**:数据的完整计算潜力 **能量守恒的ZkT机制**: 能量守恒等价于数据→计算转换能力的守恒。 ### 定义 Q02.12.3 (光速的ZkT对偶作用) **光速的对偶转换本质**: $$c := \text{数据-计算对偶转换的基本汇率}$$ **光速的数学表达*...
Markdown
(auto *output : pass.get_transfer_outputs()) { auto &barrier = get_flush_access(output->get_physical_index()); barrier.access |= VK_ACCESS_TRANSFER_WRITE_BIT; barrier.stages |= VK_PIPELINE_STAGE_2_COPY_BIT | VK_PIPELINE_STAGE_2_CLEAR_BIT; if (barrier.layout != VK_IMAGE_LAYOUT_UNDEFINED) throw std::lo...
C++
urn false; } final CalInputPixelTimeSeries other = (CalInputPixelTimeSeries) obj; if (column != other.column) { return false; } if (row != other.row) { return false; } return true; } } /* * Copyright 2017 United States Government as re...
Java
T bit is not set OR if it is set to its peer's tag and the T bit is set in the Chunk Flags. Otherwise, the receiver MUST silently discard packet and take no further action. Reflecting tag T bit = 0 The T bit is set to 0 if the sender filled in the Verification Tag expected by the peer. this is reflec...
C++
GCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat}.vjs-default-skin .vjs-load-progress{background:#646464;background:rgba(255,255,255,.4)}.vjs-default-skin .vjs-seek-handle{width:1.5em;height:100%}.vjs-default-skin .vjs-seek-...
CSS
along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <locale.h> #include "pinyin_internal.h" #include "k_mixture_model.h" void print_help(){ printf("Usage: merge_k_mixture_model [--result-file <RESULT_FILENAME>]\n"); printf(" {<SOURCE_FILENAME>}+\n")...
C++
ect(this, Position, WorldTransformation, LocalTransformation, 0.0, StartingDistance, EndingDistance, TrackPosition); } /// <inheritdoc /> public override void OptimizeObject(bool PreserveVerticies, int Threshold, bool VertexCulling) { if (IsOptimized) { return; } IsOptimized = true; int m = ...
C#
ion of the filesystem used in 8-bit Commodore microcomputers</summary> public sealed partial class CBM { #region IReadOnlyFilesystem Members /// <inheritdoc /> public ErrorNumber OpenDir(string path, out IDirNode node) { node = null; if(!_mounted) return ErrorNumber.AccessDenied; ...
C#
// 最后运行id TargetID int64 `gorm:"column:target_id;type:bigint(20) unsigned;not null;index:idx_target_id_delete_at,priority:2;comment:评估对象 id" json:"target_id"` ...
Go
UTF_8) }.getOrElse { throw CryptoException("SHA256 Fingerprints cannot be extracted from key.", it) } override fun getBase64Encoded(array: ByteArray): Based64Encoded = Base64.encodeToString(array, Base64.DEFAULT) override fun getBase64EncodedNoWrap(array: ByteArray): Based64Encoded = Base6...
Kotlin
1.84-.22 2.46-.66.62-.46.94-1.09.94-1.88 0-.79-.26-1.4-.78-1.85-.53-.45-1.3-.83-2.33-1.13-.67-.25-1.12-.45-1.37-.61-.24-.16-.36-.37-.36-.63 0-.28.12-.51.36-.69.24-.21.57-.29 1-.29.43 0 .77.12 1.01.34.25.24.37.52.37.88h2.04l.01-.03c.03-.81-.29-1.48-.93-2-.64-.52-1.46-.77-2.47-.77m4.78.06v9.18h2.15v-3.15h1.3c1.09 0 1.95...
Dart
controller.value = controller.value.replacedSelection(';'); expect( controller.value, const TextEditingValue( text: ''' { if (true) { if (true) ;} ''', // TODO(alexeyinkin): Selection. selection: TextSelection.collapsed(offset: 13), ...
Dart
ns.axboe@oracle.com> Jens Lindström <jl@opera.com> Jens Lindstrom <jl@opera.com> Jim Meyering <jim@meyering.net> <meyering@redhat.com> Joachim Berdal Haga <cjhaga@fys.uio.no> Johannes Schindelin <Johannes.Schindelin@gmx.de> <johannes.schindelin@gmx.de> Johannes Sixt <j6t@kdbg.org> <J.Sixt@eudaptics.com> Johannes Sixt <...
Go
from __future__ import annotations import os import dash # dos and bs data from local jsons from monty.serialization import loadfn import crystal_toolkit.components as ctc from crystal_toolkit.helpers.layouts import H1, Container from crystal_toolkit.settings import SETTINGS # assets folder set for visual styles o...
Python
losses_m.update(reduced_loss.item(), input.size(0)) prec1_m.update(prec1.item(), output.size(0)) prec5_m.update(prec5.item(), output.size(0)) batch_time_m.update(time.time() - end) end = time.time() if args.local_rank == 0 and (last_batch or batch_idx %...
Python
igFile = getChatConfigFile(modelDirFile) if (chatConfigFile.exists()) { val chatConfigString = chatConfigFile.readText() //mlc-chat-config val chatConfig = gson.fromJson(chatConfigString, ChatConfig::class.java) chatConfig.modelId = model.modelId chat...
Kotlin
); }; export default useCursorBasedPaginationObserver; import { getAbsoluteUrl, getCanonicalUrl } from "../urlUtilities"; describe("URL utilities", () => { describe("getAbsoluteUrl", () => { it("handles a path with a leading slash and a base URL without a trailing slash", () => { const result = getAbsol...
Typescript
local lang = require 'share.lang' local ui = require 'gui.new.template' local ev = require 'gui.event' local template = ui.container { style = { FlexGrow = 1 }, font = { size = 16 }, ui.container { style = { FlexGrow = 1 }, ui.label { text = lang.ui.AUTHOR, text_colo...
Lua
erences.askForMediaAccess('microphone')` 来请求权限;程序有权限后,即可和普通网页一样正常的录音。 ### uni-app录音权限 uni-app项目当需要编译成Android、iOS App时,需要在 `manifest.json` 中配置好Android和iOS的录音权限声明,参考上面的Android iOS权限,是一样的,注意Android不要漏掉了`MODIFY_AUDIO_SETTINGS`权限;无需其他处理,因为`Recorder-UniCore`组件内已经全部处理好了。 [​](?) [​](?) ## 【QQ群】交流与支持 欢迎加QQ群:①群 781036591...
Markdown
ilt auch für andere Lebensbereiche. Sie können sich zum Beispiel von allen sozialen Medien fernhalten, um Ihr Leben privat zu halten, aber wenn Sie ständig mit Freunden zusammen sind, die Selfies mit Ihnen machen, im Untertitel sagen, dass sie mit Ihnen zusammen sind, und Ihren Standort markieren, kann viel von Ihrer M...
Dart
/// When PTRACE_SYSCALL is used, there will be three events: /// EnteringSyscallPtrace to run the process until it gets into the kernel, /// then EnteringSyscall and ExitingSyscall. We need three events to handle /// PTRACE_SYSCALL with clone/fork/vfork and execve. The tracee must run to /// the EnteringSyscallPtrace s...
Rust
s */ uart.lcrh.write(|w| { w.uart_lcrh_wlen().bits(0x3) }); /* Enable UART module */ uart.ctl.modify(|_, w| w.uart_ctl_uarten().bit(true)); } use libyobicash::crypto::hash::digest::YDigest64; use libyobicash::crypto::mac::YMACCode; use libyobicash::data::YData as LibData; use serde_json; u...
Rust
Width: b.Dx(), Height: b.Dy(), }, }) } // Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package pprof writes runtime profiling data in the format expected // by the pprof visualization too...
Go
r.h" #include "Resource.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif CDlgChrProperty::CDlgChrProperty(CWnd* pParent /*=NULL*/) : CDialog(CDlgChrProperty::IDD, pParent) { //{{AFX_DATA_INIT(CDlgChrProperty) // NOTE: the ClassWizard will add member initialization h...
C++
V_BY_128, } e_clock_div_t; /* Error identification */ typedef enum { BSP_OK, BSP_ARG_ERROR, BSP_ERROR1, BSP_ERROR2, BSP_ERROR3 } e_bsp_err_t; /* Available delay units. */ typedef enum { BSP_DELAY_SECS = 1U, /* Requested delay amount is in seconds. */ BSP_DELAY_MILLISECS = 1000U, ...
C
DefaultEnemy::update(deltaTime); } } else { DefaultEnemy::update(deltaTime); } } void Knight::attackPlayer() { Enemy::attackPlayer(); _meshNode->attachEntity(_attackMesh); _meshNode->detachEntity(_enemyMesh); _attackMesh->resetTime(); _attachmentNode->setEntityAttachmen...
C++
#0x0]\n" "b 103f\n" "101:" // Height 3: Partial direct writeback: partial_2_0 "tbz x11, #1, 102f\n" "str d6, [x9], #0x8\n" "str d8, [x26], #0x8\n" "str d16, [x25], #0x8\n" "tbz x11, #0, 103f\n" "st1 { v6.s }[2], [x9]\n" "st1 { v8.s }[2], [x26]\n" "st1 { v16.s...
C++
mn(BlogEntity::getStar)) .limit(1, 2) .toSQL(); Assert.assertEquals("SELECT t.`id`,t1.`title`,t2.`star` FROM `t_topic` t LEFT JOIN `t_blog` t1 ON t1.`deleted` = ? AND t.`id` = t1.`id` INNER JOIN `t_blog` t2 ON t2.`deleted` = ? AND t.`id` = t2.`id` INNER JOIN `t_blog` t3 ON t3.`de...
Java
twoway) waypointSprite.setFlag(SpriteFlag.Invisible, !_showWaypoints) tiles.placeOnTile(waypointSprite, location) if (!registered[kind]) { registered[kind] = true sprites.onOverlap(SPRITE_KIND_WAYPOINT, kind, function(sprite: Sprite, otherSprite: Sprite) { ...
Typescript
78152',1,'matrix_mean():&#160;matrix_ops.sql_in']]], ['matrix_5fmem_5fmult',['matrix_mem_mult',['../matrix__ops_8sql__in.html#ad16c824212e369760b9fb8ea658eac8c',1,'matrix_mem_mult(float[] matrix_a, float[] matrix_b, boolean trans_b):&#160;matrix_ops.sql_in'],['../matrix__ops_8sql__in.html#a91383f59dcb8b7ca2fba89ea350...
JavaScript
m.Status = proto.AuditResultStatusViolating case AuditResultStatusCompliant: item.Status = proto.AuditResultStatusCompliant case AuditResultStatusIgnored: item.Status = proto.AuditResultStatusIgnored } return &item } type AuditResultHandler func(auditResult []*AuditResult) error type Auditor interface { Star...
Go
克斯。", ["T"] = "免费商品", }, [41816] = { ["D"] = "雷声。咆哮的雷声。每当天空裂开,云层都会颤抖,我的身体也随之颤抖。我多么希望自己骑在云层之上的一头强大野兽身上,咆哮着让所有人都听到!不辜负我氏族的名字——雷神——一个即将被这个世界遗忘的名字。很少有人能和我一样忧郁;这就是我追随他,那个脾气暴躁的老兽人的原因。$B$B哀悼过去毫无意义。部落才是我们现在的样子。我只希望传承狩猎精神,传承先辈们的心灵和思想,以便他们——还有我——能够延续下去。$B$B而你,你是我用火焰点燃的蜡烛。总有一天,从你的火焰中,另一支蜡烛将诞生。$B$B穿过微风港的废墟,找到前往主岛的路。经过矿...
Lua
; } async getSearchResults(query, metadata) { const page = metadata?.page ?? 1; const [response, buffer] = await this.constructSearchRequest( page, query ); await this.checkResponseError(response); const $2 = load(Application.arrayBufferToUTF8String(buffer)); ...
JavaScript
w0, [x25, 24] cbz w0, .L252 ldr x26, .LC74 mov x23, 0 mov w21, 0 .p2align 2 .L251: ldr x2, [x25, 8] mov x1, x26 mov w0, 0 add w21, w21, 1 ldrb w2, [x2, x23] add x23, x23, 1 bl dprint_vfmw ldr w0, [x25, 24] cmp w0, w21 ccmp w21, 15, 2, hi bls .L251 .L252: ldr x1, .LC72 mov w0, 0 bl dprint_vfmw .L250: ...
Assembly
al-11, .special-reports-component #bbccom_module_specialreport_text, .market-data .mkt-last-updated, .market-data .mkt-footer .mkt-data-delayed, #pictureGallery .controls a, .media_asset p.published, .media_asset .warning p, #main-content .internet-links span, .top-stories li span,.see-also span.timestamp,.see-also spa...
CSS
uNjYwMDAwMiBMIDExLjg4LDguOTk5OTk5NyBNIDkuNDAwMDAwMywxMC41IDE0LjE3MDAwMSwyLjI0MDAwMDIgYyAtMC43LC0wLjE1IC0xLjQyMDAwMSwtMC4yNCAtMi4xNzAwMDEsLTAuMjQgLTIuMzk5OTk5NywwIC00LjU5OTk5OTcsMC44NCAtNi4zMTk5OTk3LDIuMjUwMDAwMyBsIDMuNjYsNi4zNDk5OTk1IHoiCiAgICAgICBpZD0icGF0aDIiCiAgICAgICBpbmtzY2FwZTpsYWJlbD0iSXJpcyIKICAgICAgIHN0eWxlPSJ...
JavaScript
odoByOperatorId(boss.getUserId(), pageRequest).getContent(); assertEquals(1, bossTodos.size()); // 提交总经理的审批 FlowRecord bossTodo = bossTodos.get(0); flowService.submitFlow(bossTodo.getId(), boss, leave, Opinion.pass("同意")); // 查看所有流程 List<FlowRecord> records = flowRecord...
Java
validation errors`(): List<Any> { val bpUuid = UUID.fromString("99fed5e5-19a8-4ece-9d07-6beab70ee77c") return listOf( listOf(New(patientUuid), ErrorSystolicEmpty), listOf(New(patientUuid), ErrorDiastolicEmpty), listOf(New(patientUuid), ErrorSystolicTooHigh), listOf(New(patientUu...
Kotlin
using System.Diagnostics; namespace Riok.Mapperly.Abstractions; /// <summary> /// Maps all properties from a nested path on the source to the root of the target. /// </summary> [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] [Conditional("MAPPERLY_ABSTRACTIONS_SCOPE_RUNTIME")] public sealed class MapN...
C#
) -> f64 { let mut k1 = a; let mut k2 = a + b; let mut k3 = a; let mut k4 = a + 1.0; let mut k5 = 1.0; let mut k6 = b - 1.0; let mut k7 = k4; let mut k8 = a + 2.0; let mut pkm2 = 0.0; let mut qkm2 = 1.0; let mut pkm1 = 1.0; let mut qkm1 = 1.0; let mut r = 1.0; let...
Rust
== nil || *msg.DKIMSignature.CanonBody == dkim.CanonSimple { body = msg.Body.Simple() } else { body = msg.Body.Relaxed() } switch { case msg.DKIMSignature.BodyLength == nil: // Hash entire body ... case *msg.DKIMSignature.BodyLength == 0: // Body is not hashed. body = nil default: body = body[:*msg....
Go
)pipe->mInputBufferSize, // output buffer size (DWORD)pipe->mInputBufferSize, // input buffer size 0, nullptr); if (hPipe == INVALID_HANDLE_VALUE) { LOG_ERROR("CreateNamedPipe for '%s' failed (GetLastError: %u)", pipe->mName.CStr(), GetLastError()); return -1; } pipe->...
C++
println!("Sccs {:?}", sccs); println!("Sccs (Tarjan) {:?}", tsccs); return false; } true } } quickcheck! { fn kosaraju_scc_is_topo_sort(g: Graph<(), ()>) -> bool { let tsccs = kosaraju_scc(&g); let firsts = vec(tsccs.iter().rev().map(|v| v[0])...
Rust
Length == 0) return; float stretchFactor = length / prevLength; param->setPoint(param->x * stretchFactor, param->y * stretchFactor); } float ElasticEasing::getValue(const float& weight) { const float c4 = jmap<float>(param->x / length, 10, 0); float p = pow(2, -10 * weight) * sin((weight * 10 - 0.75) * c4) + 1; r...
C++
eturn params.a + 1 ?: 2 + 2", singletonMap("a", 1), true)); // Yes, this is silly, but it should be valid // Weird casts assertEquals(1, exec("int i = params.i; String s = params.s; return s ?: i", singletonMap("i", 1), true)); assertEquals("str", exec("Integer i = params.i; String s = para...
Java