content
stringlengths
2
6.21k
label
stringclasses
16 values
null; } } } /** * Copyright 2023 Gravitational, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
Typescript
rdItem.RefreshRate => Resource.RefreshRateControl_Title, DashboardItem.DpiScale => Resource.DpiScaleControl_Title, DashboardItem.Hdr => Resource.HDRControl_Title, DashboardItem.OverDrive => Resource.OverDriveControl_Title, DashboardItem.PanelLogoBacklight => Resource.PanelLogoBacklightCo...
C#
" data-toclevel="2"><a data-tochassubtree="false" href="../html/b232e795-0546-5833-5069-128bc7224dae.htm" title="CanConvert Method " tocid="b232e795-0546-5833-5069-128bc7224dae">CanConvert Method </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="../html/92c2e92d-5b87-613a-85f0-1026f...
HTML
Q p256const0<>(SB), acc1 ADCQ $0, acc2 ADCQ p256const1<>(SB), acc3 ADCQ $0, mul0 CMOVQNE t0, acc0 CMOVQNE t1, acc1 CMOVQNE t2, acc2 CMOVQNE t3, acc3 // If condition is 0, keep original value TESTQ DX, DX CMOVQEQ acc4, acc0 CMOVQEQ acc5, acc1 CMOVQEQ acc6, acc2 CMOVQEQ acc7, acc3 // Store result MOVQ acc0...
Assembly
2-8.3-6.5-8.3zm-236.3 34.7v.1h-48.3l-26.2 98c-1.2 4.4 2.2 8.3 6.4 8.3h18.9c4.8 0 9.2-3 10.4-7.8l17.2-64H395c12.5 0 21.4 11.8 18.1 23.4l-10.6 40c-1.2 4.3 1.9 8.3 6.4 8.3H428c4.6 0 9.1-2.9 10.3-7.8l8.8-33.1c9-33.1-15.9-65.4-50.3-65.4zm98.3 74.6c-3.6 0-6-3.4-5.1-6.7l8-30c.9-3.9 3.7-6 7.8-6h32.9c2.6 0 4.6 2.4 3.9 5.1l-.7 2...
JavaScript
进行逼近会更有效率。事实上,已经发现某些函数需要浅层网络有指数级更多的隐藏单元才能与深层网络实现同等水平的逼近。这种现象被称为神经网络的“深度效率”。虽然这听起来很有吸引力,但目前尚不清楚我们想要逼近的真实世界函数是否符合这种特性。 ### 4.5.4 大型结构化输入 我们讨论了每一层的每个元素都与下一层的每个元素相连的完全连接网络。但这种网络对于像图像这样的大型结构化输入来说并不实际,因为输入可能包含大约 10^6 个像素。参数数量会非常庞大,而且我们希望图像的不同部分以类似的方式进行处理;没有必要在图像的每个可能位置都独立学习识别同一对象。 解决方案是并行处理图像的局部区域,然后逐步整合来自更大区域的信息。这种由局部到全局的...
Markdown
e() return render(request, 'payment_success.html') except: payment.success = False payment.save() return render(request, 'payment-fail.html') """ def payment_success(request): return render(request, 'payment_success.html') def payment_failure(request): re...
Python
7}.no-skin .nav-list>li>.submenu:before,.no-skin .nav-list>li>.submenu>li:before{border-color:#9dbdd6}.no-skin .nav-list>li.active>.submenu:before,.no-skin .nav-list>li.active>.submenu>li:before{border-color:#8eb3d0}.no-skin .sidebar-toggle{background-color:#f3f3f3;border-color:#e0e0e0}.no-skin .sidebar-toggle>.ace-ico...
CSS
, y) { var nocolorRadio = $G('nocolorRadio'), coloredRadio = $G('coloredRadio'); if(radio) { nocolorRadio.checked = (radio == 'colored' ? false:'checked'); coloredRadio.checked = (radio == 'colored' ? 'checked':false); } if(color) { domUti...
JavaScript
class", "where T : struct")] string constraints) { var text = $$""" class Program { static void M<T>(T[] a) {{constraints}} { _ = ref a[0]; } } """; CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M<T>", @" { // Code size 12 (0xc) .m...
C#
`make_world.sh` 脚本,以帮助从源代码重建整个操作系统。 * 增加了更多的脚本,以方便重建安装程序和内核包。 * 抛弃了 Qt4,转而使用 Qt5。 * 增加了对<ruby>特权访问管理<rt>Privileged Access Management</rt></ruby>(PAM)的支持,以支持那些不支持<ruby>影子<rt>shadow</rt></ruby>密码的较新项目。 值得注意的是,你不能简单地从 Slackware 14.2 升级。因此,最好是进行一次全新的安装。 - Slackware 15 x86_64: ftp://ftp.slackware.com/pub/slackware-...
Markdown
="margin: 0px;padding: 0px;"><span style="margin: 0px;padding: 0px;font-size: 14px;"><span leaf="">G:</span></span></strong></td><td data-colwidth="418" valign="top" style="margin: 5px 10px;border: 1px solid rgb(216, 216, 216);word-break: break-all;box-sizing: border-box;padding: 5px 10px;"><p><strong style="caret-colo...
Markdown
unds()); /// Returns the maximum geographical bounds the map is constrained to, or `null` if none set. /// @example /// var maxBounds = map.getMaxBounds(); LngLatBounds getMaxBounds() => LngLatBounds.fromJsObject(jsObject.getMaxBounds()); /// Sets or clears the map's geographical bounds. /// /...
Dart
(!connectedXKeys[0].path) { throw new Error('Internal Error: path not set on xkeys device') } this.devicePath = connectedXKeys[0].path this.device = new HID.HID(this.devicePath) } // Which device is it? if (!deviceInfo) { for (const deviceKey in devices) { if (devices[deviceKey].path === t...
Typescript
mm2 #endif SHUFPD_1 %xmm9, %xmm9 SHUFPD_1 %xmm13, %xmm13 #if defined(NN) || defined(NT) || defined(TN) || defined(TT) || \ defined(NR) || defined(NC) || defined(TR) || defined(TC) addsubpd %xmm9, %xmm8 addsubpd %xmm13, %xmm12 pshufd $0x4e, %xmm8, %xmm9 pshufd $0x4e, %xmm12, %xmm13 #else addsubpd %xmm8,...
Assembly
S){ The function did not execute successfully. } \endcode \sa UnLockMutex */ int wolfSSL_CertManagerUnload_trust_peers(WOLFSSL_CERT_MANAGER* cm); /*! \ingroup CertManager \brief 証明書マネージャのコンテキストで確認する証明書を指定します。フォーマットはSSL_FILETYPE_PEMまたはSSL_FILETYPE_ASN1にすることができます。 \return SSL_SUCCESS 成功した場...
C
absolutePath) { handlePathPrefixMismatch() } if (jtvConfigLocation == null) { val parentDir = File(filesDir, "jiotv_go") jtvConfigLocation = File(parentDir, "jtv_config.json").absolutePath // jtvConfiguration.pathPrefix = parentDir.absolutePath // fix v3.1...
Kotlin
#ifndef PLANE_TRI_H #define PLANE_TRI_H /*---------------------------------------------------------------------- Copyright (c) 2004 Open Dynamics Framework Group www.physicstools.org All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provide...
C
/* SPDX-License-Identifier: GPL-2.0 */ /* * Intel SoC PMIC Driver * * Copyright (C) 2012-2014 Intel Corporation. All rights reserved. * * Author: Yang, Bin <bin.yang@intel.com> * Author: Zhu, Lejun <lejun.zhu@linux.intel.com> */ #ifndef __INTEL_SOC_PMIC_H__ #define __INTEL_SOC_PMIC_H__ #include <linux/regmap.h...
C
.height } } // Взаимодействие интерфейсов и классов // имплиментирование interface IClock { time: Date, setTime(date: Date): void } class Clock implements IClock { time: Date = new Date() setTime(date: Date):void { this.time = date } } // интерфейс для объекта с больщим коддичеством ...
Typescript
FORM FE7D;FE7D;FE7D;0640 0651;0640 0651; # (ﹽ; ﹽ; ﹽ; ـ◌ّ; ـ◌ّ; ) ARABIC SHADDA MEDIAL FORM FE7E;FE7E;FE7E;0020 0652;0020 0652; # (ﹾ; ﹾ; ﹾ; ◌ْ; ◌ْ; ) ARABIC SUKUN ISOLATED FORM FE7F;FE7F;FE7F;0640 0652;0640 0652; # (ﹿ; ﹿ; ﹿ; ـ◌ْ; ـ◌ْ; ) ARABIC SUKUN MEDIAL FORM FE80;FE80;FE80;0621;0621; # (ﺀ; ﺀ; ﺀ; ء; ء; ) ARABIC LETT...
Kotlin
rz3OvTQ QxXVtm1bNUWrVq2UrLKyUsDO/PGPf9SSJUsU1atXLw0aNEipIqYUkZGRoV69 eqk+s2fPVtSgQYNUUFCg+mzYsEEJOTk5OvTQQ2Vmwg9ryJAhev/997Vu3TpF zZs3T1deeaUOP/xw4bvXsmVL/epXv9Ktt96q2tpaJcyZM0fJMjIydMMNN+jE E08UAOxNsrKyBNRnx44datu2rRK6dOmi3WFmimrVqpXQfPXt21cjR47Untix Y4eApnjhhRc0efJkRZmZrr76ajnnlCpigoqLi5WQmZmp9u3bqz7V1dVaunSp Evr37y8...
HTML
er-routing.72ff67ae.js" defer></script> <script id="vite-plugin-ssr_pageContext" type="application/json">{"pageContext":{"_pageId":"/pages/recipes/recipe","pageProps":{"config":{"firstPublishedIn":"First published in 2017","ingredients":[{"ingredient":{"gramsPerMilliliter":0,"gramsPerUnit":0,"title":"poussin","...
HTML
アの追加]** 画面において、 **[インクルードパス]** に作成した「 **s3://[S3 BUCKET NAME]/minilake-in1**(任意)」を入力し、 **[次へ]** をクリックします。 **Note:** **[S3 BUCKET NAME]** には、ご自身で作成された S3 バケットの名前を入力ください。 4. **[別のデータストアの追加]** 画面においても、 **[次へ]** をクリックします。 5. **[IAM ロールの選択]** 画面において、 **[既存の IAM ロールを選択]** にチェックを入れ、作成したロール「 **handson-minilake-role**(任...
Markdown
ST.L D0 BEQ.B DirDiskError ddloop1 MOVE.L FileLock,D1 MOVE.L #FileInfoBlock,D2 MOVE.L DOSBase,A6 JSR _LVOExNext(A6) TST.L D0 BEQ.B DirDiskUnlock BTST #2,$DFF016 ; right mouse button BEQ.B AbortDir BSR.W NewDirEntry BRA.B ddloop1 AbortDir CLR.L 4(A5) LEA DirAbortedText(PC),A0 JSR ShowStatusText BSR.B DirD...
Assembly
ginShape(LINE_STRIP); // use lines. POINTS in P3D has no control on size. for(int i=0; i<p.length; i++){ if(IConfig.cullVertexBehindViewInP3D){ if(isInFront(p[i])){ vertex(p[i]); /*vertex(p[i]);*/ } } else{ vertex(p[i]); /*vertex(p[i]);*/ } } super.endShape(); /* super.beginShape(POINTS); for(i...
Java
/ TODO: advice the PO to not reload after save. InterfaceWrapperHelper.save(po); document.markAsSaved(); needsRefresh = true; } else { logger.trace("Skip saving {} because there was no actual change", po); } // // Execute after save runnables if (!afterSaveRunnables.isEmpty()) { afterSav...
Java
2_1)(212, s)) # define BOOST_PP_WHILE_212_C(c, p, o, s) BOOST_PP_IIF(c, BOOST_PP_WHILE_213, BOOST_PP_TUPLE_ELEM_3_2)(p, o, BOOST_PP_IIF(c, o, BOOST_PP_TUPLE_ELEM_2_1)(213, s)) # define BOOST_PP_WHILE_213_C(c, p, o, s) BOOST_PP_IIF(c, BOOST_PP_WHILE_214, BOOST_PP_TUPLE_ELEM_3_2)(p, o, BOOST_PP_IIF(c, o, BOOST_PP_TUPLE_E...
C++
} const randomizeTile = function(x: number, y: number) { randomTileNumber = Math.floor(Math.random() * (max - min + 1)) + min; tileMap[y][x] = Tiles[notSoRandomTileNumber()]; repeat = true; } const checkTileCombinations = function (x: number, y: number, surroundingTiles: any){ const N: boolean = ...
Typescript
") then KLHTM_SetGuiScale(gui.gen.scale.frame:GetValue() / 100); gui.gen.scale.value:SetText(options.scale * 100 .. "%"); else if mod.out.checktrace("warning", me, "invalidargument") then mod.out.printtrace(string.format("The argument '%s' to OptionsGeneral_OnValueChanged is invalid.", tostring(command))) e...
Lua
r0, sp, #0x0 add r3, sp, #0x4 mov r1, r10 mov r2, r8 strb r12, [sp] strh r11, [sp, #0x2] bl Function_20df108 ldrb r0, [sp, #0x8] add r1, sp, #0x9 add r0, r1, r0 b branch_20d63e8 @ 0x20d63d0 .arm branch_20d63d0: @ 20d63d0 :arm ldrb r2, [sp, #0x8] ldrsh r1, [sp, #...
Assembly
ryptedKey); return PascalPublicKey.CreateFromPrivateKey(encryptedKey.keytype, pk); } } import { cloneMediaQuery, isMediaFeaturePlain, isMediaFeatureRangeNameValue, isMediaFeatureRangeValueName, isMediaFeatureRangeValueNameValue, isMediaQueryInvalid, parse } from '@csstools/media-query-list-parser'; import ...
Typescript
,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Kw(e,t){if(t){if(zq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ae(60));if(typeof t.dangerouslySetInnerHTM...
HTML
headersBuilder(): Headers.Builder = super.headersBuilder().add("Referer", "$baseUrl/") private open inner class HttpCall(href: String?) { val url: HttpUrl.Builder = baseUrl.toHttpUrl() .run { href?.let { newBuilder(it)!! } ?: newBuilder() } val request: Request.Builder = Reque...
Kotlin
} } clear () : void { this.tree.clear(); } close () : void { this.tree.clear(); } } import { SpecifiedPathParameterHasNoNameError } from '../../../configuration/error'; export class RoutePart { public static constructFromString( part: string ): RoutePart | never { ...
Typescript
5s ease-in-out reverse;animation:uk-fade .5s ease-in-out reverse}.widget_search form.search-form .search-field{width:100%}.widget_search form.search-form .search-submit{-webkit-appearance:none;margin:0;border:none;overflow:visible;font:inherit;color:#444;text-transform:none;display:inline-block;box-sizing:border-box;pa...
CSS
ZERO_MODE(denormals_zero_mode_ ? _MM_DENORMALS_ZERO_ON : _MM_DENORMALS_ZERO_OFF); #endif } } // namespace port } // namespace tensorflow /* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_wchar_t_ncpy_65a.cpp Label Definition...
C++
addr: ULong) : Memory<MSP430Core>(dtyp, WORD, addr, access, WRONGI) /* * * This file is part of Kopycat emulator software. * * Copyright (C) 2023 INFORION, LLC * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the F...
Kotlin
bldM87; f42GM87; nhlM87; BASSLEAD; Lead 8 brass // Amplitude begins at 724.4, peaks 1854.6 at 0.0s, // fades to 20% at 1.8s, keyoff fades to 20% in 0.1s. { 863, 863, 0, 0, 1800, 60 }, // 999: b10M88; bldM88; f42GM88; nhlM88; FANTASIA; Pad 1 new age // Amplitude begins at 0.0, peaks 3197.3 a...
C++
�] </h3> <h3> <em> 敬爱的毛主席: </em> </h3> <p> 今将河北省建屏县四个月来的镇压反革命工作向你做个报告: </p> <p> 我县全部是老区,人口109,595人,经过减租减息,一九四七年五月复查与土地改革,过去已将反革命分子杀掉一些,一般的反革命活动不十分严重,但自土改以后,反动的九宫道大加恢复与发展,在五、六十个村已恢复建立起组织,进行反革命宣传与破坏活动。因此,这次镇压反革命,我们的重点是对付九宫道。 </p> <p> 镇反开始,正当我县集训村干部,在三期村干部训练班一千五百人中做了传达,后又在全县党代表会、全县青年团村支书...
HTML
Map, env, sync::Arc, }, semver::Version, crate::{ ContentItem, Menu, MenuItem, attr::{ Color, Params, }, }, }; /// A type-safe handle for [SwiftBar](https://swiftbar.app/)-specific features. /// /// Some SwiftBar-specific f...
Rust
(e))return!1;var c="";if(n)switch(n.constructor){case Number:c=n===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:c="; expires="+n;break;case Date:c="; expires="+n.toUTCString()}return"rootDomain"!==r&&".rootDomain"!==r||(r=(".rootDomain"===r?".":"")+document.location.hostname.split(".")...
HTML
lass::detail::check_alignment<min_tma_aligned_elements_S>(args.layout_SFA)) { implementable = false; CUTLASS_TRACE_HOST(" CAN IMPLEMENT: Problem size doesn't meet the minimum alignment requirements for using TMA to load scale A.\n"); } if (IsTmaLoadSFB && !cutlass::detail::check_alignment<min_tma_a...
C++
t %l6, [%o5] add %o5, %l3, %o5 ld [%o5], %l6 st %l6, [%o5] add %o5, %l3, %o5 ld [%o5], %l6 st %l6, [%o5] add %o5, %l3, %o5 ld [%o5], %l6 st %l6, [%o5] add %o5, %l3, %o5 ld [%o5], %l6 st %l6, [%o5] add %o5, %l3, %o5 ld [%o5], %l6 st %l6, [%o5] ! cbranch andcc %l0, 1, %g0 be,pt %xcc, TARGET7389 nop RET7389: ! lfsr ste...
Assembly
"origin." or // "origin.0" (a numeric value evaluating to zero as scanned by sscanf // which would include "origin.00" "origin.000", etc.). bool is_base_origin = false; char *name = node->GetName(); if (stricmp(name, "origin.") == 0) is_base_origin = true; else if (strlen(name) > strlen("origin.")) { // We k...
C++
// 3. Remove an item that has anchors following one of its other anchors (Tests that anchors // stop following) Stack 1, 2, 3 m->addDockWidget(dock3, Location_OnBottom); m->addDockWidget(dock2, Location_OnBottom); m->addDockWidget(dock1, Location_OnBottom); QCOMPARE(layout->count(), 3); QCOMPARE...
C++
gineAlias1; // [esp+70h] [ebp-B4h] const snd_alias_t *engineAlias0; // [esp+74h] [ebp-B0h] bool result; // [esp+7Ah] [ebp-AAh] uint8_t boneIndex; // [esp+7Bh] [ebp-A9h] int32_t entityNum; // [esp+7Ch] [ebp-A8h] const cg_s *cgameGlob; // [esp+80h] [ebp-A4h] float mins[3]; // [esp+84h] [ebp-A0h] B...
C++
suy]*$/)[0]; patternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g'); } /** @type {RegExp} */ var pattern = patternObj.pattern || patternObj; for ( // iterate the token list and keep track of the current token/string position var currentNode = startNode.next, pos = startPos; ...
JavaScript
(n)),process.exitCode=1}finally{await oe.rmtempPromise()}}ik(process.argv.slice(2),{cwd:z.cwd(),selfPath:ue.toPortablePath(ue.resolve(process.argv[1])),pluginConfiguration:AC()});})(); /* object-assign (c) Sindre Sorhus @license MIT */ /*! * buildToken * Builds OAuth token prefix (helper function) * * @name buildTo...
JavaScript
--[[---------------------------------------------------------------------------- Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found...
Lua
Times,serif" font-size="14.00">ForgetPwdComponent</text> </g> <!-- ForgetPwdComponent&#45;&gt;AppModule --> <g id="edge10" class="edge"><title>ForgetPwdComponent&#45;&gt;AppModule</title> <path fill="none" stroke="black" d="M663,-128.002C663,-145.675 663,-170 663,-170 663,-170 1256.18,-170 1256.18,-170"/> <polygon fill...
HTML
="lineno"> 151</span>&#160;obj_xwr18xx/dfptest_config.oer4f: /opt/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/IInstance.h</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;obj_xwr18xx/dfptest_config.oer4f: /opt/ti/bios_6_73_01_01/packages/ti/sysbios/interfaces/ITimer.h</div><div c...
HTML
WEB only final Object? webPostRequestBody; /// Constructor const WebViewContent({ required this.source, required this.sourceType, this.headers, this.webPostRequestBody, }); /// copyWith function to copy objects WebViewContent copyWith({ String? source, SourceType? sourceType, ...
Dart
>\n<ol type=\"1\">\n<li> <p> A kan IRC da Matrix, dandamalin taɗi da aka fi amfani da su a cikin al\'ummar Monero (waɗanda aka haɗa su tare). Waɗannan dandamali suna ba da damar yin babban taɗi na rukuni kuma ana gudanar da duk tarurrukan al\'umma na Monero, tarurrukan dev, da taron binciken bincike. Waɗannan tarurruka...
Dart
"Jiřiny Štěpničkové", "Jiřská", "Jiřího Jandy", "Jiřího Mašína", "Jiřího Ze Vtelna", "Jiříčkova", "Jiříčkové", "Jižní I", "Jižní Ii", "Jižní Iii", "Jižní Iv", "Jižní Ix", "Jižní Nám.", "Jižní Náměstí", "Jižní Spojka", "Jižní Spojka", "Jižní Spojka", "Jižní Spojka", "Jižní V", "Ji...
JavaScript
her': '0\u4E07'}, 8: {'other': '0\u4EBF'}, 12: {'other': '0\u4E07\u4EBF'}, }, COMPACT_DECIMAL_SHORT_CURRENCY_PATTERN: const { 3: {'other': '0'}, 4: {'other': '\u00A40\u4E07'}, 8: {'other': '\u00A40\u4EBF'}, 12: {'other': '\u00A40\u4E07\u4EBF'}, }), // Compact number symbols for locale zh_C...
Dart
ithubusercontent.com/vimeshjs/vimesh-headless/master/./assets/tailwind001.png) ### 사용된 컴포넌트만 동적으로 로드 컴포넌트는 일반 html 파일로, 어디서나 호스팅할 수 있으며 보통 CDN에 위치합니다. 추가 트리 쉐이킹 작업 없이도 다른 프로젝트 간에 공유할 수 있습니다. 예를 들어, 다이얼로그 기본 예제는 두 개의 컴포넌트 `hui-dialog`와 `hui-menu`를 사용합니다. 이들을 `x-import`로 비동기 로드하면 Vimesh UI가 해당 네이티브 커스텀 엘리먼트를 등록하고 초기화합니다...
Markdown
(), }} STRUCT!{struct D3D10_TECHNIQUE_DESC { Name: LPCSTR, Passes: UINT, Annotations: UINT, }} RIDL!{#[uuid(0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75)] interface ID3D10EffectTechnique(ID3D10EffectTechniqueVtbl) { fn IsValid() -> BOOL, fn GetDesc( pDesc: *mut...
Rust
/* * Copyright 2020 The casbin Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
C
<li data-md> <p>If <var>root</var> has multiple children that are numbers (not percentages or dimensions), remove them and replace them with a single number containing the product of the removed nodes.</p> <li data-md> <p>If <var>root</var> contains only two children, one of which is a num...
HTML
"name"); tinyxml2::XMLElement *joints = group->FirstChildElement("joint"); while (joints != nullptr) { const auto &joint_name = joints->Attribute("name"); addJointToGroup(group_name, joint_name); joints = joints->NextSiblingElement("joint"); } ...
C++
子类必须重写方法(否则就报错), 并且按需调用某个协议中的默认实现(这一点很像 C++): ```java interface HowEat{ public abstract String howeat(); default public void test() { System.out.println("tttt"); } } interface HowToEat { public abstract String howeat(); default public void test() { System.out.println("yyyy"); } } class Untitled implements...
Markdown
10,0x45] // CHECK-ERROR: instruction requires: sve2 // CHECK-UNKNOWN: 00 f4 10 45 <unknown> sli z31.h, z31.h, #15 // CHECK-INST: sli z31.h, z31.h, #15 // CHECK-ENCODING: [0xff,0xf7,0x1f,0x45] // CHECK-ERROR: instruction requires: sve2 // CHECK-UNKNOWN: ff f7 1f 45 <unknown> sli z0.s, z0.s, #0 // CHECK-INST: s...
Assembly
equals(configKey, PORT) || Objects.equals(configKey, DIR) || Objects.equals(configKey, DAEMONIZE)); return Result.successResult(configKeyList); } @RequestMapping(value = "/updateRedisConfig", method = RequestMethod.POST) @ResponseBody @OperationLog(type = Operati...
Java
logging.Errorf("Couldn't find channel %d in peer.QCs", q.Idx()) continue } logging.Infof("Cleaing HTLC from channel [%d] idx [%d]\n", q.Idx(), h.Idx) err = nd.ClearHTLC(qc, R, h.Idx, [32]byte{}) if err != nil { logging.Errorf("failed to clear HTLC: %s", err.Error()) continue } ...
Go
做游戏机 ![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20230211-1676084492678) - 计算机行业和游戏行业 - 跟随着底层技术不断迭代 - 已经进入了战乱纷纷的年代 - 最终又会如何呢?🤔 - 我们下次再说!👋--- show: step version: 1.0 enable_checker: true --- # 自定义命名空间(namespace) ## 回忆 - 上次进入系统类库的位置 - /usr/lib/python3.8 - 编写我们自己的oeasy.py - 这个文件就是一个模块 - 这个模块可以在游乐场和py...
Markdown
_1: 7 - 7 xorl %r10d, %eax rorxl $6, %r12d, %edx addl %eax, %r8d vpaddd %xmm4, %xmm9, %xmm3 # msg_sched done: 12-15 # set_w_k_xfer_4: 12 vpaddd 192(%rbp), %xmm0, %xmm4 vpaddd 208(%rbp), %xmm1, %xmm5 vmovdqu %xmm4, (%rsp) vmovdqu %xmm5, 16(%...
Assembly
务,或者在固定的时间内重复它们。 [https://github.com/mvniekerk/tokio-cron-scheduler](https://github.com/mvniekerk/tokio-cron-scheduler) ## fluent-uri:一个快速、简单和严格的URI解析器 Announcing fluent-uri: a fast, easy and strict URI parser 简介 一个严格遵守IETF RFC 3986和RFC 6874的Rust URI解析器。 特性 - 快速:零拷贝解析,据观察,比Rust中常见的URI解析器快2-25倍; - 简单:精心设计和文档良好的AP...
Markdown
"D", Type: crash.LostConnection}, {Title: "E", Type: crash.LostConnection}, {Title: "F", Type: crash.LostConnection}, }, types: []crash.Type{crash.LostConnection}, report: "A", other: false, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { rep, types, other := most...
Go
assertEquals("{\"ids\":[\"" + events + "\"]}", encodedFilters); } @Test public void testKindFiltersEncoder() { log.info("testKindFiltersEncoder"); Kind kind = Kind.valueOf(1); FiltersEncoder encoder = new FiltersEncoder(new Filters(new KindFilter<>(kind))); String encodedFilters = encoder.enco...
Java
import torch import torch.nn as nn import tkinter as tk from sentence_transformers import SentenceTransformer # Set device device = "mps" if torch.backends.mps.is_available() else "cpu" # Load sentence transformer llm = SentenceTransformer('thenlper/gte-large', device=device) # Define the Decoder model class Decoder...
Python
}, [69348] = {"Presacurta Gumeskuma",nil}, [69355] = {"Batedor Alaine","Os Fendessol"}, [69356] = {"Batedor Merior","Os Fendessol"}, [69357] = {"Batedor Elearis","Os Fendessol"}, [69359] = {"Bidu Meiallen","Expedição Jurássica"}, [69360] = {"Bozó Mechispa","Expedição Jurássica"}, [69362] = {"Saurok Gumeskuma",nil}, [69...
Lua
) /** * 设置全局可读可写 * @param context 实例 * @param prefsFileName Sp 文件名 */ internal fun makeWorldReadable(context: Context?, prefsFileName: String) { runCatching { context?.also { File(File(it.applicationInfo.dataDir, "share...
Kotlin
/1F33A"><svg version="1.1" viewBox="0 -320 1000 1480"><symbol id="OBSERVED/CFF-1/1F33A.gid59" overflow="visible"><path d="M646,290 L684,434 C707,522 728,596 748,686 L752,686 C772,596 793,522 816,434 L853,290 Z M928,0 L966,0 L773,726 L727,726 L534,0 L570,0 L637,256 L862,256 Z M241,-12 C346,-12 426,64 426,184 C426,286 35...
HTML
encoded "secret". }, ), ), )), expectedStored: &definitions.PostableApiReceiver{ Receiver: config.Receiver{ Name: lineIntegration.Name, }, PostableGrafanaReceivers: definitions.PostableGrafanaReceivers{ GrafanaManagedReceivers: []*definitions.PostableGrafanaReceiver{ { ...
Go
hat is raised after a context is added; it becomes the active context</summary> event EventHandler<ItemInsertedEventArgs<object>> ContextAdded; /// <summary> /// Event that is raised after a context is removed</summary> event EventHandler<ItemRemovedEventArgs<object>> ContextRemoved; ...
C#
luasnip.expand_or_jump() elseif check_backspace() then fallback() else fallback() end end, { "i", "s", }), ["<S-Tab>"] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_prev_item() elseif luasnip.jumpable(-1) the...
Lua
} type TrackedPropertyList<T> = { [K in keyof T]: TrackedProperty<T[K]>; } const TrackedPropertyListKey = "_trackedProperties"; export const getTrackedPropertyList = <T>(obj: T) => ((obj as any)[TrackedPropertyListKey] = (obj as any)[TrackedPropertyListKey] || {}) as TrackedPropertyList<T>; export const getTra...
Typescript
tr [[DOTBOUND_TID__ADDR]], align 8 // CHECK1-NEXT: store i64 [[A]], ptr [[A_ADDR]], align 8 // CHECK1-NEXT: store i64 [[AA]], ptr [[AA_ADDR]], align 8 // CHECK1-NEXT: store ptr [[B]], ptr [[B_ADDR]], align 8 // CHECK1-NEXT: [[TMP0:%.*]] = load ptr, ptr [[B_ADDR]], align 8 // CHECK1-NEXT: store i32 0, ptr...
C++
label:'',name:'heiti',val:'黑体, SimHei'}, // { label:'',name:'lishu',val:'隶书, SimLi'}, // { label:'',name:'andaleMono',val:'andale mono'}, // { label:'',name:'arial',val:'arial, helvetica,sans-serif'}, // { label:'',name:'arialBlack',val:'arial black,avant garde'}, //...
JavaScript
= new ve.dm.Change( 1, [ TxRemove( doc, new ve.Range( 1, 2 ) ) ], [ emptyStore ], {} ); // Doomed conflicting history: text gets bolded const setBold = new ve.dm.Change( 1, [ TxAnnotate( doc, new ve.Range( 1, 2 ), 'set', b ) ], [ bStore ], {} ); const result = ve.dm.Change.static.rebaseUncommittedChange( remove, se...
JavaScript
using Humanizer; namespace MineSharp.SourceGenerator.Utils; // IMPORTANT: When changing anything here, it must be changed at MineSharp.Data/Internal/NameUtils.cs as well public static class NameUtils { private static string CommonGetName(string x) { return x.Pascalize(); } public static str...
C#
�한 가중치이다. 총 손실은 \\(\\mathcal{L}_{\\text{Ref}}\\)과 \\(\\mathcal{L}_{\\text{SSDS}}\\)의 가중합이다.\n' + '\n' + '## 4 Experiments\n' + '\n' + '### Implementation Details\n' + '\n' + '안정확산으로 이미지를 인페인팅할 때 유도척도를 7.5, 추론단계 수를 30으로 설정하였다. 우리는 파이토치3D[40]을 미분 가능한 렌더링 엔진으로 사용한다. 800에서 900 사이의 타임스탬프(...
HTML
ldsig#}Transforms" minOccurs="0"/> * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}DigestMethod"/> * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}DigestValue"/> * &lt;/sequence> * &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> * &lt;attribute...
Java
uffix}`}, ], isDraggable: true, elementKind: 'card', rotatableDegrees: 360, deckElements: [], isDrawable: true, }); write(`/gameBuilder/elements/card2${idSuffix}`, { uploaderEmail: `yoav@goo.bar`, uploaderUid: uid, createdOn: firebase.database.ServerValue.TI...
Typescript
Wedge', 'Meat on Bone', 'Poultry Leg', 'Cut of Meat', 'Bacon', 'Hamburger', 'French Fries', 'Pizza', 'Hot Dog', 'Sandwich', 'Taco', 'Burrito', 'Stuffed Flatbread', 'Cooking', 'Shallow Pan of Food', 'Pot of Food', 'Bowl With Spoon', 'Green Salad', 'Popcorn', 'Salt', 'Canned Food'...
Dart
"l": 5, "f": 5344}, {"h": "鹩", "p": "liáo", "sp": "liao", "r": "鳥", "sc": 17, "l": 5, "f": 5345}, {"h": "舢", "p": "shān", "sp": "shan", "r": "舟", "sc": 9, "l": 5, "f": 5346}, {"h": "趸", "p": "dǔn", "sp": "dun", "r": "足", "sc": 10, "l": 5, "f": 5347}, { "h": "證", "p": "zhèng", "sp": "zheng", "r":...
Dart
methodBuilder.addJavadoc("generated code of ${layoutName}.xml\n$stringBuilder") methodBuilder.addModifiers(Modifier.PUBLIC, Modifier.STATIC) methodBuilder.returns(MethodCreateClassHolder.viewClass) methodBuilder.addParameter(MethodCreateClassHolder.inflateClass, Constants.G...
Kotlin
# Strong Number (Special Numbers Series #2) def factorial(n): fact=1 for i in range(1,n+1): fact*=i return fact def strong_num(number): s = str(number) suma = 0 for i in s: suma += factorial(int(i)) if suma == number: return "STRONG!!!!" else: return "No...
Python
color: white; } /* Level colors */ .level-chip.FINEST, .level-chip.FINER, .level-chip.FINE { color: var(--ente-text-faint); } .level-chip.CONFIG { color: var(--ente-success); } .level-chip.INFO { color: var(--ente-color-accent-photos); } .level-chip.WARNING { color: var(--ente-warning); } .level-chip.SEVERE { colo...
CSS
} &:active { bottom: 8px; } } .animatedfull { img { @include experimental-value(height, fill-available); width: auto; } } slide.large { article > h2 { font-size: 94px; line-height: initial; } } slide.futureweb { article > h2 { text-shadow: initial; line-height: initial;...
CSS
Test fun insert() { tester.insert() } @Test fun insertList() { tester.insertList() } @Test fun insertOrUpdate() { tester.insertOrUpdate() } @Test fun insertOrUpdatedList() { tester.insertOrUpdateList() } @Test fun copyToRealm() { ...
Kotlin
GNSSTK_GPSWEEK_HPP #include "gnsstk_export.h" #include "TimeTag.hpp" namespace gnsstk { /// @ingroup TimeHandling //@{ /** This class is an abstract base class inherited by other * GPS-time-related classes. It is abstract because it does not fulfill * the abstract methods imposed by ...
C++
mblCarouselHeaderBar .mblPageIndicatorContainer { margin-left: 0px; margin-right: 0px; } .mblCarouselPages { position: relative; text-align: center; } .mblCarouselItem { text-align: center; } .mblCarouselItemHeaderText { color: white; font: 14px arial, helvetica, clean, sans-serif; text-align: center; ...
CSS
ecanter01x", "p_decapitated_head01x", "p_decapitated_head01x_2", "p_decapitated_head02x", "p_decapitated_head02x_2", "p_decapitated_head03x", "p_decapitated_head3x_2", "p_deed_cs01x", "p_deerantchandelier01x", "p_deerdeadbones01x", "p_deerdeadcarcass01x", "p_deerfresh01x", "p_deerguts01x", "p_deerhanging01...
Lua
t 7,%01000110 .byt 2,2 .byt 2,%01001100 .byt 2,%01001100 .byt 2,%01011000 .byt 2,%01011000 DisplayCharacterInfo lsr adc #2 jmp DisplayCharacterOther ;Parsed ;A FaceID DisplayCharacterFace tax lda FaceGraphicLo,x sta source lda FaceGraphicHi,x sta source+1 ldx #15 .( loop2 ldy #2 loop1 lda (source),y s...
Assembly
- 若希望实现个性化相等比较和错误打印,则需手动实现 - 否则可以为自定义的结构体、枚举添加 `#[derive(PartialEq, Debug)]` 注解,来[自动派生](https://course.rs/appendix/derive.html)对应的特征 **以上特征限制对于下面即将讲解的 `assert_ne!` 一样有效,** 就不再重复讲述。 ## assert_ne! `assert_ne!` 在使用和限制上与 `assert_eq!` 并无区别,唯一的区别就在于,前者判断的是两者的不相等性。 我们将之前报错的代码稍作修改: ```rust fn main() { let a = 3; ...
Markdown
et) err := lc.PartitionManager.HandleMutation(part.Partition, r.Value, r.Offset) if err != nil { return fmt.Errorf("error in HandleMutation: %w", err) } } return nil }) }) err := g.Wait() return err } package config import ( "os" "testing" ) func TestGetSet(t *testing.T) { if Get("test1...
Go
/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */ #include "test_sve_acle.h" /* ** cmpne_u16_tied: ** cmpne p0\.h, p0/z, (z0\.h, z1\.h|z1\.h, z0\.h) ** ret */ TEST_COMPARE_Z (cmpne_u16_tied, svuint16_t, p0 = svcmpne_u16 (p0, z0, z1), p0 = svcmpne (p0, z0, z1)) /* ** cmpne_u16_untied: ** cmpne p0...
C
The password hash broke due to an over zealous buffer overflow check. \n\n@@bgcolor(#ff0000):color(#ffffff):Changes for 1.4.6@@\n\n!!__SSL Library__\n* Fixed issue where the stdint typedefs were not imported by default (stdint.h had to be included explicity) (thanks Anthony G. Basile)\n* Fixed RNG initialization issue...
HTML