content
stringlengths
2
6.21k
label
stringclasses
16 values
raw P? x = DM_MATRIXX + DM_SPACINGX; y = DM_MATRIXY; for (i=0 ; i<MAXPLAYERS ; i++) { if (playeringame[i]) { V_DrawPatchClean(x-LittleShort(p[i]->width)/2, DM_MATRIXY - WI_SPACINGY, &FB, p[i]); V_DrawPatchClean(DM_MATRIXX-LittleShort(p[i]->width)/2, y, &FB, p[i]); ...
C++
#pragma once #include "compiler/compiler_warnings_control.h" DISABLE_COMPILER_WARNINGS #include <QString> RESTORE_COMPILER_WARNINGS #define UI_BRIGHTNESS QStringLiteral("UI/Screen/Brightness") #define UI_BRIGHTNESS_DEFAULT 100 #define UI_FONT_SIZE_SETTING QStringLiteral("UI/Font/Size") #define UI_FONT_SIZE_DEFAULT 2...
C
} /** * @param {?KeyboardEvent} keyboardEvent * @return {number} */ static makeKeyFromEventIgnoringModifiers(keyboardEvent) { var keyCode = keyboardEvent.keyCode || keyboardEvent['__keyCode']; return UI.KeyboardShortcut._makeKeyFromCodeAndModifiers(keyCode, UI.KeyboardShortcut.Modifiers.None); }...
JavaScript
: "FK_group_leader_group_member_groupId_characterId_realmId", columns: x => new { x.groupId, x.characterId, x.realmId }, principalTable: "group_member", principalColumns: new[] { "groupId", "characterId", "realmId" }, onDele...
C#
wheelY = deltaY * factor; break; case e.DOM_DELTA_LINE: var linePixels = 15; e.wheelX = deltaX * linePixels; e.wheelY = deltaY * linePixels; break; case e.DOM_DELTA_PAGE: var pagePixels = 150; ...
JavaScript
with full TypeScript type safety and performance optimization._ --- aliases: [neptune, neptune-system, ice-giant] tags: [systems, solar-system, neptune, ice-giant, astronomy] type: Data package: "@teskooano/systems-solar-system" dependencies: ["@teskooano/data-types", "@teskooano/core-math", "@teskooano/core-physics...
Markdown
.matchers.nulls.shouldBeNull import io.kotest.matchers.nulls.shouldNotBeNull import io.kotest.matchers.shouldBe import io.kotest.property.Arb import io.kotest.property.RandomSource import io.kotest.property.arbitrary.Codepoint import io.kotest.property.arbitrary.az import io.kotest.property.arbitrary.string import io.m...
Kotlin
(true); fixValue(getNewValue(value), true); } function onKeyup({keyCode}: KeyboardEvent) { if (keyCode === 37 || keyCode === 39) { dragging.set(false); triggerChangeEvent(oldValue); } } return {onKeydown, onKeyup}; } // Type definitions for react-mailch...
Typescript
gui_distance1[name], n)) end return true end return ret end) worldedit.register_gui_function("worldedit_gui_spiral", { name = "Spiral", privs = we_privs("spiral"), get_formspec = function(name) local node, length, height, space = gui_nodename1[name], gui_distance1[name], gui_distance2[name], gui_distance3[n...
Lua
<dt><samp>n</samp></dt> <dd><p>Set the number of samples which are printed on the same column. A larger value will decrease the frame rate. Must be a positive integer. This option can be set only if the value for <var>rate</var> is not explicitly specified. </p> </dd> <dt><samp>rate, r</samp></dt> <dd><p>Set the (appr...
HTML
prev_concat = has_dash; } new_text } }<reponame>DICO-TEAM/dico-chain<filename>pallets/oracle/src/traits.rs use sp_std::vec::Vec; pub trait UpdateOraclesStorgage<AccountId, CurrencyId> { fn initialize_members(members: Vec<AccountId>); fn insert_members(memmber: &[AccountId]); fn del...
Rust
q: 2, Prev: prev, } emptyVoteFrom1 := createEmptyVote(emptyBlockMd, nodes[1]) emptyVoteFrom2 := createEmptyVote(emptyBlockMd, nodes[2]) e.HandleMessage(&Message{ EmptyVoteMessage: emptyVoteFrom1, }, nodes[1]) e.HandleMessage(&Message{ EmptyVoteMessage: emptyVoteFrom2, }, nodes[2]) bb.BlockShouldBeBu...
Go
ina."; }; [1501] = { ["name"] = "Criatura Abisal"; ["objective"] = "Lleva la tablilla de Vergua a Gan'rul Ojosangre a Orgrimmar."; }; [8110] = { ["name"] = "Algas de los Mares del Sur encantadas"; }; [8762] = { ["name"] = "Metzen el reno"; ["objective"] = "Rescata a Metzen el reno d...
Lua
露娜萨·普莉兹姆利巴</a>,<a href="./梅露兰·普莉兹姆利巴.md" title="梅露兰·普莉兹姆利巴">梅露兰·普莉兹姆利巴</a>,<a href="./莉莉卡·普莉兹姆利巴.md" title="莉莉卡·普莉兹姆利巴">莉莉卡·普莉兹姆利巴</a></div></td> </tr><tr><td class="label">名称</td><td colspan="2"> プリズムリバーさんのファントムディなんとかゲーム! </td></tr><tr><td class="label">制作方</td><td><a href="./壁画に眠る.md" title="壁画に眠る">壁画に眠る</a></td><td ...
Markdown
} 100% { opacity: 1; margin-top: 0; } } @keyframes e-fadeInUp { 0% { opacity: 0; margin-top: 10px; } 100% { opacity: 1; margin-top: 0; } } /* ====================== Footer-wrapper ====================== */ /* ====================== MEDIA QUERIES =...
CSS
34;, pattern: str = &#34;password&#34;, enable_pattern: Optional[str] = None, check_state: bool = True, re_flags: int = re.IGNORECASE, default_username: str = &#34;&#34;, ) -&gt; str: &#34;&#34;&#34;Enter enable mode&#34;&#34;&#34; if check_state and self.che...
HTML
0; SLCC1; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; Lunascape 6.3.", "Mozilla/4.0 (compatible; MSIE 8.0; X11; Linux x86_64; de) Opera 10.62", "Mozilla/4.0 (compatible; WebCapture 3.0; Macintosh)", "Mozilla/4.5 (compatible; OmniWeb/4.2.1-v435.9; Mac_PowerPC)", "Mozilla/4.6 (Macintosh; I; PPC)", "...
JavaScript
. If <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, text under the cursor will be drawn with foreground and background colors reversed.</p> <div class="refsect3"> <a name="vte-terminal-set-color-cursor-foreground.parameters"></a><h4>Parameters</h4> <di...
HTML
slave_id) { return 0; } s32 sunxi_rsb_read(u32 slave_id, u32 daddr, u8 *data, u32 len) { u32 rtaddr = 0; u32 tmp_slave_id; int i; for(i=0;;) { tmp_slave_id = rsb_slave[i].chip_id; if(tmp_slave_id == slave_id) { break; } else if(!tmp_slave_id) {...
C
failed!!(%d)\n", __FUNCTION__, ret); goto poweroff; } goto exit; poweroff: platform_wifi_power_off(); exit: RTW_PRINT("module init ret=%d\n", ret); return ret; } static void rtw_drv_halt(void) { RTW_PRINT("module exit start\n"); sdio_drvpriv.drv_registered = _FALSE; sdio_unregister_driver(&sdio_drvpriv...
C
message.guild.id}`, { method: "POST" }).then((res: any) => res.json()); if (response.status === 200) return a(["HTTP [200:OK]: Webhook registered."]); else if (response.status >= 500 && response.status < 600) { return b("HTTP [5xx:SERV...
Typescript
local line = info.currentline return file, line end -- Prints a warning message with optional file name and line number. function report.warning(message, file, line) log("WARNING", message, file, line) end -- Prints an error message with optional file name and line number. function report.error(message, file, ...
Lua
e, PanicAssertion}; use zebra_network as zn; use zebra_state as zs; use crate::{ components::{ sync::{self, SyncStatus}, ChainSync, }, config::ZebradConfig, }; use InventoryResponse::*; /// Maximum time to wait for a request to any test service. /// /// The default [`MockService`] value ...
Rust
#include <ansi.h> #include <room.h> inherit ROOM; varargs protected void create_food(string nmstr, string* idlist, string longstr) { object obj; obj = new(__DIR__"obj/food"); obj->set_name(nmstr, idlist); if (longstr) obj->set("long", longstr); else ...
C
ead of Production server. This option for TESTING PURPOSES ONLY. /// </summary> public bool DevMode { get; set; } /// <summary> /// If true, all request and response content will be printed to the console. Use this option only FOR DEVELOPMENT. /// </summary> public bool DebugLog { get; set; } stri...
C#
String = get(homeGenreSuggestedTvShows) }package org.jellyfin.androidtv.ui.search import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import org.jellyfin.androidtv.data.repository.ItemRepository import org.jellyfin.sdk.api.client.ApiClient import org.jellyfin.sdk.api.client.exception.ApiClientE...
Kotlin
分散的现象。 ### 4.3 调和分析的范畴解释 调和分析研究傅里叶分析及其推广,可在范畴框架下理解: - **函数空间范畴** $\text{Func}$: - **对象**:各种函数空间,如 $L^p$ 空间、Sobolev空间 - **态射**:保持特定结构的线性算子 - **调和分析中的关键变换**可视为函子或自然变换: - **傅里叶变换** $\mathcal{F}: L^2(\mathbb{R}^n) \rightarrow L^2(\mathbb{R}^n)$ 是一个幺正算子,可视为自函子 - **小波变换**可视为从函数空间到系数空间的函子 - **算子演算**可视为在算子范畴中的代...
Markdown
g(feature = "ta")] crate::Annotation { lang: "ta", tts: Some( "ஆனந\u{bcd}தக\u{bcd}கண\u{bcd}ண\u{bc0}ர\u{bcd} சிந\u{bcd}தும\u{bcd} பூனை முகம\u{bcd}", ), keywords: &[ "ஆனந\u{bcd}தக\u{bcd} கண\u{bcd}ண\u{bc0}ர\u{bcd}", "ஆன...
Rust
\\n # Apply flip augmentation to image first\\n image_hflip = A.HorizontalFlip(p=1.0)(image=image)[\\"image\\"]\\n transformed_hflip = val_transform(image=image_hflip)\\n image_tensor_hflip = transformed_hflip[\\"image\\"].unsqueeze(0).to(device)\\n with autocast('...
HTML
cmp x7, x0 4342e0: 54005542 b.cs 434d88 <printf_positional+0x1058> // b.hs, b.nlast 4342e4: 9100cc78 add x24, x3, #0x33 4342e8: 12b00019 mov w25, #0x7fffffff // #2147483647 4342ec: cb140318 sub x24, x24, x20 4342f0: 927ef718 and x24, x24, #0xfffffffffffffffc 4342f4: 8b180298 add x24, x20,...
Assembly
> <style> #canvas { background: #000; width: 800px; height: 600px; position:absolute; left:56px; top:30px; } </style> <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ var canvasId = "#canvas"; var start = Date.now(); var width = 800, height = 600; var dataurl ...
HTML
### 1.2 执行原则 #### 原则 1.2.1 (完整性原则) $$\forall t \in \mathcal{T}, \exists c \in \mathcal{C}: \text{Covers}(c, t)$$ #### 原则 1.2.2 (一致性原则) $$\forall c_1, c_2 \in \mathcal{C}, \text{Consistent}(c_1, c_2)$$ #### 原则 1.2.3 (形式化原则) $$\forall d \in \mathcal{D}, \text{Formalized}(d)$$ ## 2. 当前执行状态 ### 2.1 已完成阶段 #### 阶段...
Markdown
4) { -ms-grid-row: 4; } #oooNavBarModuleIcons > a:nth-child(5) { -ms-grid-row: 5; } #oooNavBarModuleIcons > a:nth-child(6) { -ms-grid-row: 6; } #oooNavBarModuleIcons > a:nth-child(7) { -ms-grid-row: 7; } #oooNavBarModuleIcons .oooNavBarHighlight { ...
CSS
turn chi2_per_n def test_physics_improvements(): """Test v4 physics on example galaxy""" print("\n=== Testing Physics Improvements ===\n") # NGC 3198-like test data r = np.array([0.5, 1, 1.5, 2, 3, 4, 5, 6, 8, 10, 12, 15, 18, 20, 25, 30]) * kpc v_obs = np.array([65, 90, 108, 120, 135, 142, 145...
Python
target-content-type="buzz" data-vars-type="web_internal_link" data-vars-position-in-subunit="9" _msthidden="1"><h3 class="card__headline__text" _msttexthash="2478814" _msthidden="1" _msthash="315">Top Progressives Blame AIPAC, Outside Money For Defeats In Oregon</h3></a></div></div></div><div class="card js-card" data...
HTML
ng-touched .k-input-validation-icon, .k-picker-outline.ng-invalid.ng-dirty .k-input-validation-icon { color: #f31700; } .k-input-flat { border-color: rgba(255, 255, 255, 0.38); color: #ffffff; } .k-input-flat:hover, .k-input-flat.k-hover { border-color: #ffffff; } .k-input-flat:focus, .k-input-flat.k...
CSS
<img width="174" height="135" src="https://inspiralized.com/wp-content/uploads/2021/05/Screen-Shot-2021-05-14-at-11.31.34-AM-174x135.png" class="attachment-product-feed size-product-feed wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://inspiralized.com/wp-content/upl...
HTML
#include "platform.h" #if HAS_SIGNBIT C_Int_t Real32_signBit (Real32_t f) { return signbit (f); } C_Int_t Real64_signBit (Real64_t d) { return signbit (d); } #else enum { LITTLE_R32_byte = 3, LITTLE_R64_byte = 7, }; enum { BIG_R32_byte = 0, BIG_R64_byte = 0, }; C_Int_t Real32_signBit (Real32_t f) { ...
C
6z"}}]})(a)}function BsBootstrap(a){return(0,r.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.062 12h3.475c1.804 0 2.888-.908 2.888-2.396 0-1.102-.761-1.916-1.904-2.034v-.1c.832-.14 1.482-.93 1.482-1.816 0-1.3-.955-2.11-2.542-2.11H5.062V12zm1.313-4.875V4.658h1.78c.973 0 1.5...
JavaScript
std::cout << CONNECTOR_SYBMOL << std::setfill(HORIZONTAL_SYBMOL); for (int j = 0; j < m - 1; j++) std::cout << std::setw(wn[j]) << CONNECTOR_SYBMOL; std::cout << std::setw(wn[m - 1]) << CONNECTOR_SYBMOL << std::endl; std::cout << SIDE_SYBMOL; for (int j = 0; j < m; j++) std::cout << s...
C++
karteViewer) // 前回処方を適用した新規カルテはこの選択されたカルテが元になる private KarteViewer selectedKarte; // 選択されている karteViewer // busy プリパティ private boolean busy; // 文書履を昇順で表示する場合に true private boolean ascending; // 文書の修正履歴を表示する場合に true private boolean showModified; // このクラスの状態マネージャ private StateM...
Java
import pytest from datetime import datetime from flask.testing import FlaskClient def test_dr_all(app, client: FlaskClient, dr_reg_form1): from flaskr.services import add_user from werkzeug.datastructures import ImmutableMultiDict client, _ = client assert client.get('/doctor', follow_redirects=True).j...
Python
loadoutPlate.abilityLevels[j] and level >= loadoutPlate.abilityLevels[j] ) then numUsableAbilities = numUsableAbilities + 1; end end --If we don't have something in a flyout, automatically put there the lower level ability if ( ability1ID == 0 and loadoutPlate.abilities[1] ) then ability1ID = lo...
Lua
cy_sample - xy) / cell_size # 中心与左上坐标差值 (7*7) # 坐标w,h代表了预测的bounding box的width、height相对于整幅图像width,height的比例 target[int(ij[1]), int(ij[0]), 2:4] = wh[i] # w1,h1 target[int(ij[1]), int(ij[0]), :2] = delta_xy # x1,y1 # 每一个网格有两个边框 target[int(ij[1]), int(ij[0]...
Python
el":"Cuisines","description":"","terms":[{"@id":4673,"name":"Southeast Asian","slug":"southeast-asian"}]},{"name":"preparation","label":"Preparation","description":"","terms":[{"@id":11,"name":"Easy and Simple","slug":"easy-and-simple"}]}]}]}</script> <!-- [slickstream] END Page Metadata --> <script class='slickstream-...
HTML
c17c92 x=14468.508452 y=194.832237 style="fill: #f0f1f2; stroke: #f0f1f2"/></g><g clip-path=url(#p9abd2177e2)><use xlink:href=#C0_0_2e22c17c92 x=14468.508452 y=160.857237 style="fill: #f0f1f2; stroke: #f0f1f2"/></g><g clip-path=url(#p9abd2177e2)><use xlink:href=#C0_0_2e22c17c92 x=14468.508452 y=126.882237 style="fill: ...
HTML
Example: 'files/20_1582_example.mp3', textMeaning: 'A cub is a baby animal, such as a bear or lion', textExample: 'The lion cub was crying for its mother', transcription: '[kʌb]', wordTranslate: 'детеныш', textMeaningTranslate: 'Детёныш - это детёныш, такой как медведь или лев', textExampleTrans...
Typescript
scode-dark"] .tw-text-gray-500, body[data-vscode-theme-kind="vscode-dark"] .tw-text-gray-800 { color: var(--vscode-sideBar-foreground) !important; } /* Base font and styling from original */ @font-face { font-family: cody-icons; font-display: block; src: url('../../resources/cody-icons.woff') format('w...
CSS
4)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#AB1D1D;padding-right:3.4375rem;background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right .75rem center/8px 10px no-repeat,url...
Go
pattern.BySecond[j]; date = date.AddSeconds(-date.Second + second); secondlyDates.Add(date); } } return secondlyDates; } // Limit behavior for (var i = dates.Count - 1; i >= 0; i--) ...
C#
.JSString import com.shiqi.quickjs.QuickJS import org.ezbook.server.Server import org.ezbook.server.tools.ServerLog import org.ezbook.server.tools.runCatchingExceptCancel import java.io.Closeable /** * 轻量级 JS 执行器,集中管理 QuickJS 生命周期,避免重复创建 Runtime/Context */ class JsExecutor : Closeable { private val quickJs by l...
Kotlin
NY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE /// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER /// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ...
C++
3, __OSStartTime@sda21(r13) /* 803D2644 003CF444 48 00 4A 65 */ bl OSDisableInterrupts /* 803D2648 003CF448 38 60 00 00 */ li r3, 0 /* 803D264C 003CF44C 4B FF 0D 25 */ bl PPCMtmmcr0 /* 803D2650 003CF450 38 60 00 00 */ li r3, 0 /* 803D2654 003CF454 4B FF 0D 25 */ bl PPCMtmmcr1 /* 803D2658 003CF458 38 60 00 00 */ l...
Assembly
cords = %lld (%llu bytes)\n", (u_longlong_t)drr_record_count[DRR_FREEOBJECTS], (u_longlong_t)drr_byte_count[DRR_FREEOBJECTS]); (void) printf("\tTotal DRR_WRITE records = %lld (%llu bytes)\n", (u_longlong_t)drr_record_count[DRR_WRITE], (u_longlong_t)drr_byte_count[DRR_WRITE]); (void) printf("\tTota...
C
些 Neocon 来为她开辟财源。她一开始是先做 Hillary 的 Spokesperson,然后后来 Hillary 退休以后,她升到助理国务卿。然后她的朋友,有一个她的一个好友也是 Hillary 团队的,转正到 Biden 去当国安主管,就是大名鼎鼎的 Jake Sullivan。<br/><br/><a onclick="seek(5289)">史东 01:28:09</a> <br/>都是一伙的、一窝子。<br/><br/><a onclick="seek(5292)">王孟源 01:28:12</a> <br/>都是一窝的。这一窝 Neocon 或者 Neolib,不管你怎么叫,都是犹太系的,他们的责任就是全世界放火,...
HTML
(May 20, 2008)</h2> <p>This release should not contain changes that may break your application.</p> <hr /> <h2>Release 2.1.2 (April 14, 2008)</h2> <p>The following changes may break your application build:</p> <ul> <li><samp>WTreeNode::expanded()</samp> has been renamed to <samp>WTreeNode::isExpanded()</samp>...
HTML
/** * * Phantom OS multithreading library. * * Copyright (C) 2009-2011 Dmitry Zavalishin, dz@dz.ru * * Low level thread switch code. * * Licensed under CPL 1.0, see LICENSE file. * **/ #include <amd64/asm.h> #include "cpu_state.h" #define SAVE_CR2 1 #warning CR2? // called and returns with interrupts disabl...
Assembly
着了。过了些时,李起床,宋警醒。送问李起来干什么,李称与其躺着睡睡不着,还不如起来写检查(姚冰等人到李家“核对”后,及当晚批斗会后,都曾责令李于次日交出“检查”)。经宋同意,李即在室内踱来踱去,宋在朦胧中睡去。大约凌晨3时许,宋警来时已不见李,即去询问门卫,并到教育厅宿舍向通讯员何伟琪作了报告。教育厅即派人四出寻找。5时30分左右发现李死在区人委(现区人民政府)大楼后面的水泥地上。5时50分区公安厅派法医赶到现场,进行了尸体检验,认定为跳楼摔死。 </p> <p> 李晓光死后的第二天,姚冰等人在区直文化干校大会议厅主持召开党员大会,宣布开除李晓光的党籍。 </p> <p> 1967年2月4日,由梁全进主持...
HTML
>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):...
CSS
.execFrozen(this.name, this.context.from, game.bet) throwerr(err) this.kvc.add(game.gameid, game) this.kvc.add(game.randhash, "ok") this.kvc.addlog(game) return this.kvc.receipt() } Exec.prototype.Guess = function(args) { var match = {__type__ : "match"} match.gameid = args.gameid match...
Go
] snmpset returned: rc=0, success=True [2025-10-05 22:57:19] [INFO] [SNMP SET] 192.168.0.11 1.3.6.1.4.1.19865.2.7.0 = 1 -&gt; OK (v1/public) [2025-10-05 22:57:19] [INFO] [SNMP] Successfully set channel 7 to ON [2025-10-05 22:57:19] [PASS] STEP 1.441 completed successfully </pre> </div> </details> <details> <summary> <d...
HTML
.595-132.3V824h-122.4V691.7H616.903V573.803L863.5 188.605h161.998v404.097h78.3v99h-78.3zm-122.4-391.496h-1.8c-2.7 10.8-20.7 49.5-45.898 89.1L725.8 592.7h177.298V300.205zm457.2 538.196c-141.3 0-221.4-84.6-221.4-180.9 0-84.598 47.7-134.098 108.9-165.598-54.9-34.2-89.1-72.9-89.1-138.6 0-105.298 95.4-178.198 204.3-178.198 ...
CSS
/** ****************************************************************************** * @file PWR/PWR_ModesSelection/Src/stop1_mroff_rtc_test.c * @author MCD Application Team * @brief Main Interrupt Service Routines. * This file provides template for all exceptions handler and * periphe...
C
Comparer = value.Comparer; } } } } [GenerateSerializer] public struct SortedDictionarySurrogate<TKey, TValue> { [Id(1)] public List<KeyValuePair<TKey, TValue>> Values { get; set; } [Id(2)] public IComparer<TKey> Comparer { get; set; }...
C#
elle Gilliam // Modified Header. // //****************************************************************************************************** using System; using GSF.Parsing; namespace GSF.Historian.Packets; /// <summary> /// Represents a data parser that can parse binary data in to <see cref="IPacket"/>s. /// ...
C#
if (path3.existsSync()) path3.deleteSync(); path3.writeAsString(jsonEncode(tagGroup)); final path4 = File('${directory.path}$subdir/tag-index.json'); if (path4.existsSync()) path4.deleteSync(); path4.writeAsString(jsonEncode(tagIndex)); final path5 = File('${directory.pa...
Dart
.azure_search.cli.build_search_pipeline", return_value=FakePipeline(), ): args: list[str] = [ "azure-search", "run", "what is life?", "--embedding-deployment", "emb", "--generation-deployment", "gen", # k...
Python
h the operator (as would be done by the caller) op.SetFinished() require.True(t, op.IsFinished()) op.PostFinish() } // Copyright 2024 PingCAP, 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 th...
Go
.09.43.26.6s.37.26.6.26c.24 0 .43-.08.59-.25.16-.17.23-.37.23-.61V1.73c0-.24-.08-.44-.23-.61s-.35-.25-.59-.25c-.23 0-.43.08-.6.25s-.26.37-.26.61v2.06zm5.53 2.28c0 .24.09.44.26.6.14.17.33.25.57.25s.44-.08.6-.25l1.44-1.45c.17-.16.26-.35.26-.59s-.08-.44-.25-.61a.822.822 0 00-.61-.25c-.22 0-.41.09-.57.26L22.7 5.47c-.17.16-...
Dart
import os from dotenv import load_dotenv from email.message import EmailMessage import ssl import smtplib import re load_dotenv() # load env to secure the email and app password # take valid input def take_inp(prompt): """ Prompt until the user enters a valid input. Returns a string with leading/trailing w...
Python
er version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Pu...
Kotlin
0) light_direction = normalize(lightpos.xyz - mappos4.xyz); float dist_light_here = dot(lightpos.xyz - mappos4.xyz, light_direction); float cosphi = max(0.0, dot(normalize(map_normals4.xyz), light_direction)); float attenuation = attenuate(dist_light_here, LIGHTRADIUS); #else /*distance( Point P, Segment...
Lua
) XUD_GetData_CheckDataLength: sub r0, r0, 2 // Length correction for CRC correction ashr r11, r0, 32 // Check for < 0. No CRC check on ISO so less than 2 bytes could be received. bt r11, XUD_GetData_Select_BadPkt stw r0, r2[0] ...
Assembly
anon.htm">anonymity</A> <IMG SRC="bulletr.gif" tppabs="http://www.anticrack.de/fravia/bulletr.gif" ALIGN="BOTTOM" BORDER="0" VSPACE="0" HSPACE="0" WIDTH="13" HEIGHT="13"><A HREF="orc.htm" tppabs="http://www.anticrack.de/fravia/orc.htm">+ORC</A> <IMG SRC="bulletr.gif" tppabs="http://www.anticrack.de/fravia/bulletr.gi...
HTML
// // Growth.h // GrowthSDK // // Created by Shuichi Tsutsumi. // Copyright (c) 2013 AppSocially Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without...
C
.depth_console(0); test(); } // ------------------------------------------------------------------------ // // SPDX-License-Identifier: LGPL-2.1-or-later // Copyright (C) 2021 - 2023 by the deal.II authors // // This file is part of the deal.II library. // // Part of the source code is dual licensed under Apache-2.0...
C++
; } } // not found notFound: setBusyCursor(gFalse); return gFalse; // found on a different page foundPage: update(pg, scrollX, continuousMode ? -1 : 0, zoom, rotate, gFalse, gTrue, gTrue); page = findPage(pg); if (!page->text->findText(u, len, gTrue, gTrue, gFalse, gFalse, caseSensitive...
C++
h0U3RhdGUiLCJQcmVzZW5jZSIsInByb3BzIiwicHJlc2VudCIsImNoaWxkcmVuIiwicHJlc2VuY2UiLCJ1c2VQcmVzZW5jZSIsImNoaWxkIiwiaXNQcmVzZW50IiwiUmVhY3QyIiwiQ2hpbGRyZW4iLCJvbmx5IiwicmVmIiwiZ2V0RWxlbWVudFJlZiIsImZvcmNlTW91bnQiLCJjbG9uZUVsZW1lbnQiLCJkaXNwbGF5TmFtZSIsIm5vZGUiLCJzZXROb2RlIiwidXNlU3RhdGUiLCJzdHlsZXNSZWYiLCJ1c2VSZWYiLCJwcmV2UH...
JavaScript
Shape); if (inShape) { if (_checkWithRaycast) { final myCenter = rectCollision.center.toVector2(); final compCenter = component.rectCollision.center.toVector2(); final direction = (compCenter - myCenter).normalized(); final result = raycast( direction, maxD...
Dart
test] fn test_entity() { let mut world = World::new(); world.spawn(); } #[test] fn test_component() { struct TestComponent { test: u32, } impl Component for TestComponent {} let mut world = World::new(); let entity = world.spawn().w...
Rust
nd prefabPath ~= "" then Z.CoroUtil.create_coro_xpcall(function() for key, value in ipairs(awardList) do local itemName = "hero_award_item" .. key local unitToken = self.cancelSource:CreateToken() self.unitTokenDict_[itemName] = unitToken local item = self:AsyncLoad...
Lua
.doc(to) .update({ "friends.incoming": admin.firestore.FieldValue.arrayUnion(<FriendUser>{ from, requestDate, }), notifications: admin.firestore.FieldValue.arrayUnion({ message: `${name}님에게서 친구 요청을 받으셨습니다.`, created: requestDate, type...
Typescript
- and time-averaged. All files should correspond to the same system (for example, snapshots of a molecular dynamics run) for the calculation to make sense.</p> <p>If the system contains several atom species then all the partial RDFs are computed. E.g. if atoms A and B exist, then Atomsk will compute the RDF for A atom...
HTML
item-all-check span { vertical-align: middle; } .cart-foot-wrap .item-all-del { float: left; margin-left: 22px; } .cart-foot-wrap .item-all-del .item-del-btn { vertical-align: middle; } .cart-foot-wrap .cart-foot-r { float: right; } .cart-foot-wrap .cart-foot-r:after { visibility: hidden; display: block; ...
CSS
_scales[1]); // stride 32 int stride2 = 32; int grid_h2 = model_in_h / stride2; int grid_w2 = model_in_w / stride2; int validCount2 = 0; validCount2 = process(input2, (int *)anchor2, grid_h2, grid_w2, model_in_h, model_in_w, stride2, filterBoxes, objProbs, classId, con...
C++
Some(S::zero_value()) } } impl<S> Source for Zero<S> where S: Sample { #[inline] fn current_frame_len(&self) -> Option<usize> { None } #[inline] fn channels(&self) -> u16 { self.channels } #[inline] fn samples_rate(&self) -> u32 { self.samples_rate ...
Rust
DecimalIntegerLiteral - 64)) | (1L << (Break - 64)) | (1L << (Do - 64)) | (1L << (Instanceof - 64)) | (1L << (Typeof - 64)) | (1L << (Case - 64)) | (1L << (Else - 64)) | (1L << (New - 64)) | (1L << (Var - 64)) | (1L << (Catch - 64)) | (1L << (Finally - 64)) | (1L << (Return - 64)) | (1L << (Void - 64)) | (1L << (Contin...
Java
"9"; TEST ("9", -1, -1, -1, 0, _ef, 1, 0, 8, 8); TEST ("99", -1, -1, -1, 0, _ef, 2, 0, 8, 8); TEST ("999", -1, -1, -1, 0, _ef, 3, 0, 8, 8); TEST ("9991", -1, -1, -1, 0, _e_, 4, 0, 8, 1); // exercise grouping locale_data.whitespace = "_"; locale_data.thousands_sep = ';'; locale...
C++
bJ, const in float bR) {\n vec4 rgba = texture2D(brdfLUT, vec2(bJ, bI));\n float b = (rgba[3] * 65280.0 + rgba[2] * 255.);\n float a = (rgba[1] * 65280.0 + rgba[0] * 255.);\n const float cV = 1. / 65535.;\n return (bZ * a + b * bR) * cV;\n}\nvec3 cW(const in vec3 by, const in vec3 bC, const in float bI, const in ...
JavaScript
: -5.464_062 }, }, { name: "Caesars Palace Hotel & Casino", address: { locality: "Las Vegas", countryName: "United States" }, category: ["hotel"], geo: { latitude: 36.116_173, longitude: -115.176_69 }, }, { name: "Cairns International Airport (CNS)", uid: "https://cairnsairport.com.au", ...
JavaScript
e; entry_size -= chunk_size; } return 0; } u8 *iwm_eeprom_access(struct iwm_priv *iwm, u8 eeprom_id) { if (!iwm->eeprom) return ERR_PTR(-ENODEV); return iwm->eeprom + eeprom_map[eeprom_id].offset; } int iwm_eeprom_fat_channels(struct iwm_priv *iwm) { struct wiphy *wiphy = iwm_to_wiphy(iwm); struct ieee802...
C
{"\\u010CAKI MIHALJ", {0}}, {"\\u010CAKI MIHALJ", {0}}, {"\\u010CAKI PIRO\\u0160KA", {0}}, {"\\u010CABAI ANDRIJA", {0}}, {"\\u010CABAI LAJO\\u0160", {0}}, {"\\u010CABAI MARIJA", {0}}, {"\\u010CABAI STEVAN", {0}}, {"\\u010CABAI STEVAN", {0}}, {"\\u010CABARK...
C++
move.w #200,$ff8a38 ; Move 200 lines move.w #$ffff,$ff8a28 move.w #$ffff,$ff8a2a move.w #$ffff,$ff8a2c ; These are the masks, whatever that is move.b #2,$ff8a3a ; Blit Hop=2 move.b #0,$ff8a3b ; Blit Op=0, i.e. all bits to 0 move.b #0,$ff8a3d ; Skew etc. .lpx bset.b #7,$ff8a3c ; Bombs away! nop btst.b...
Assembly
try { _$failedField = 'seat'; seat.build(); _$failedField = 'reservation'; _reservation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'Ticket', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$resu...
Dart
#if defined(__arm__) @ ==================================================================== @ Written by Andy Polyakov <appro@openssl.org> for the OpenSSL @ project. The module is, however, dual licensed under OpenSSL and @ CRYPTOGAMS licenses depending on where you obtain it. For further @ details see http://www.open...
Assembly
.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93...
CSS
details ## Testing `latexMatrix()` Even this simple test doesn't work: ::: {.cell} ```{.r .cell-code} Eqn("\\mathbf{X}=", latexMatrix(), quarto=TRUE) ``` ::: {.cell-output .cell-output-stdout} ``` $$ \mathbf{X}=\begin{pmatrix} x_{11} & x_{12} & \cdots & x_{1m} \\ x_{21} & x_{22} & \cdots & x_{2m} \\ ...
Markdown
"deadbeef").unwrap()); } #[test] fn base64_decode_array() { data_encoding_macro::base64_array!("const OUTPUT" = "deadbeef"); assert_eq!(&OUTPUT as &[u8], data_encoding::BASE64.decode(b"deadbeef").unwrap()); } #[test] fn hexlower_decode() { const OUTPUT: &'static [u8] = &data_encoding_macro::hexlower!("dea...
Rust
"/", Prefix: gcsPath, Versions: false, } objectIterator := bucketHandle.Objects(ctx, &q) var dirEntries []*storage.ObjectAttrs pageToken := r.URL.Query().Get("pageToken") nextPageToken, err := iterator.NewPager(objectIterator, s.DirListPageSize, pageToken).NextPage(&dirEntries) if err != nil { msg := f...
Go
/* 00664 80B935F4 3C010001 */ lui $at, 0x0001 ## $at = 00010000 /* 00668 80B935F8 304DFFFD */ andi $t5, $v0, 0xFFFD ## $t5 = 00000000 /* 0066C 80B935FC 460A403C */ c.lt.s $f8, $f10 /* 00670 80B93600 34211E60 */ ori $at, $at, 0x1E60 ## $at = 00011E60 /...
Assembly