content
stringlengths
2
6.21k
label
stringclasses
16 values
doc = YDoc() /// local_sv = encode_state_vector(local_doc) /// /// # document on machine B /// remote_doc = YDoc() /// remote_delta = encode_state_as_update(remote_doc, local_sv) /// /// apply_update(local_doc, remote_delta) /// ``` #[pyfunction] pub fn encode_state_vector(doc: &mut YDoc) -> Vec<u8> { doc.begin_tra...
Rust
tProjection(); // camera.glGetViewport(); /* if(isOrthographicProjection) orthographicProjection.set(); else perspectiveProjection.set(); */ // viewport.set((GLint) width, (GLint) height);*/ } void NXOpenGLRenderingEngine::paintGL(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUF...
C++
Tex) thumbTexture:SetDrawLayer('OVERLAY') thumbTexture:SetVertexColor(1, 1, 1, 0.5) thumbTexture:SetAllPoints() thumbHolder.texture = thumbTexture if not unskinned then local statusParent = statusText and statusText.parent if statusParent then statusParent:Hide() statusParent:SetTempla...
Lua
this.angle) * this.range; this.angle += this.speed; } }// Copyright 2018-2023 the oak authors. All rights reserved. MIT license. export type StructuredClonable = | { [key: string]: StructuredClonable } | Array<StructuredClonable> | ArrayBuffer | ArrayBufferView // deno-lint-ignore ban-types | BigInt |...
Typescript
-pf-view .card-pf-top-element .card-pf-icon-circle{border:2px solid #39a5dc;border-radius:50%;display:block;font-size:46px;height:106px;line-height:102px;margin:0 auto;text-align:center;width:106px}.col-lg-2 .card-pf-view .card-pf-top-element .card-pf-icon-circle{font-size:23px;height:54px;line-height:50px;width:54px}....
CSS
xport const paMajorFactor: Constant = { Knight: 0.09, Berserker: 0.09, Wizard: 0.06, Priest: 0.06, Archer: 0.09, "Heavy Gunner": 0.09, Thief: 0.09, Assassin: 0.09, "Rune Blader": 0.09, Striker: 0.09, "Soul Binder": 0.06 }; export const paMinorFactor: Constant = { Knight:...
Typescript
OPACITY","CMFD_BAY_PAGE"}--this may not be bneeded check when more pages done for backlight on page 7 SMS fc3 bs -- DOORBOX.controllers = {{"opacity_using_parameter",0},{"parameter_in_range",1,0.9,1.1}}--MENU PAGE = 1 -- DOORBOX.level = 2 -- DOORBOX.h_clip_relation = h_clip_relations.COMPARE -- vertices(DOORB...
Lua
n.gif" onclick="OnIncreaseToc()" alt="Click or drag to resize" title="Click or drag to resize" /><img id="ResizeImageReset" src="../icons/TocClose.gif" style="display:none" onclick="OnResetToc()" alt="Click or drag to resize" title="Click or drag to resize" /></div></div><div id="TopicContent" class="topicContent"><tab...
HTML
t_data']; // privSets = json['priv_sets'] != null // ? new PrivSets.fromJson(json['priv_sets']) // : null; // baijiahaoInfo = json['baijiahao_info']; // godInfo = json['god_info']; // bazhuGrade = json['bazhu_grade']; // newGodData = json['new_god_data'] != null // ? new NewG...
Dart
无法看出源主机或目的主机所连接的网络是否进行了子网划分,因此需要使用子网掩码。 使用子网掩码的好处:不管网络有没有划分子网,只要把子网掩码和IP地址进行逐位的与运算,就立即得出网络地址来。 如果一个网络不划分子网,那么该网络的子网掩码就使用默认的子网掩码。 A类地址的默认子网掩码是255.0.0.0。 B类地址的默认子网掩码是255.255.0.0。 C类地址的默认子网掩码是255.255.255.0。 子网掩码是一个网络或一个子网的重要属性。路由器在和相邻路由器交换路由信息时,必须把自己所在的网络或子网的子网掩码告诉相邻路由器。 在采用固定长度子网划分时,所划分的所有子网掩码的子网掩码都是相同的。子网号不能为全1或全...
Markdown
2 ) var CMsgDOTAMatch_ReplayState_name = map[int32]string{ 0: "REPLAY_AVAILABLE", 1: "REPLAY_NOT_RECORDED", 2: "REPLAY_EXPIRED", } var CMsgDOTAMatch_ReplayState_value = map[string]int32{ "REPLAY_AVAILABLE": 0, "REPLAY_NOT_RECORDED": 1, "REPLAY_EXPIRED": 2, } func (x CMsgDOTAMatch_ReplayState) Enum() *C...
Go
rketRole.type", "type": "Element", "required": True, } ) created_date_time: str = field( metadata={ "name": "createdDateTime", "type": "Element", "required": True, "pattern": r"((([0-9]{4})[\-](0[13578]|1[02])[\-](0[1-9]|[12...
Python
apFactory import net.corda.layeredpropertymap.create import net.corda.layeredpropertymap.tests.converters.IntegrationDummyEndpointInfo import net.corda.utilities.parse import net.corda.utilities.parseList import net.corda.v5.base.types.LayeredPropertyMap import org.junit.jupiter.api.Assertions.assertEquals import org.j...
Kotlin
oste de Bor'gorok."}}, [12487] = {"Au bastion de la Conquête, mais avec prudence !", nil, {"Présentez-vous à la Conquérante Krenna au Bastion de la Conquête dans les Grisonnes."}}, [12488] = {"Le grand exécuteur a besoin de vous", nil, {"Parlez au Grand exécuteur Ulcéré à Vexevenin, dans la Désolation des dragons."}}, ...
Lua
}, 5000, 'page should navigate to /123'); }); it('should execute ng-click but not reload when href empty string and name specified', function() { element(by.id('link-4')).click(); expect(element(by.model('value')).getAttribute('value')).toEqual('4'); expect(element(by.i...
JavaScript
_RADIANCE; } else if (debug_view_ == "HashGridCache_FilteredGain") { hash_grid_cache_constant_data.debug_mode = HASHGRIDCACHE_DEBUG_FILTERING_GAIN; } else if (debug_view_ == "HashGridCache_FilteredSampleCount") { hash_grid_cache_constant_data.debug_mode = HASHGRIDCACHE_DEBUG_FILT...
C++
0cd6717e">00073</a> <a class="code" href="structIrradProcess.html#616d2e9d046921db20ddd00f0cd6717e">IrradProcess</a>(<span class="keyword">const</span> <a class="code" href="classNormal.html">Normal</a> &amp;<a class="code" href="util_8cpp.html#0240ac851181b84ac374872dc5434ee4">N</a>, <span class="keywordtype">...
HTML
rmilyen merevlemez vagy SSD valószínűleg megfelel. ::: ::: info A flash meghajtó nem ajánlott, mivel kicsi és még ugyanazon termékek között is eltérő lehet a működése. Alternatívaként használhatsz egy SD kártyát is, de figyelmeztetünk, hogy a Wii SD kártya-olvasója lassú. ::: ::: info Ellenőrizd, hogy a külső há...
Markdown
Детеныш ската Пустоты",nil}, [28569] = {"Строитель",nil}, [28571] = {"Штейгер Вик",nil}, [28572] = {"Каменщик Голдгилд","Королевская гильдия каменщиков"}, [28573] = {"Подводный строитель",nil}, [28596] = {"Дворф-строитель",nil}, [29089] = {"Мини-Тираэль",nil}, [29093] = {"Иан Дрейк","Старейшина"}, [29095] = {"Эдвард Кэ...
Lua
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 4 -*- // // cauchy.h: Rcpp R/C++ interface class library -- // // Copyright (C) 2010 - 2011 Douglas Bates, Dirk Eddelbuettel and Romain Francois // // This file is part of Rcpp. // // Rcpp is free software: you can redistribute it and/or modify it // u...
C
'50906214,50906213,50906213,50906215,50906214'}, {'509072', '', '测试怪物组', '泛用机动最终决战兵器。', '', '300101001', '50907214', '0', '0', '3', '', '', '', '1', '1', '3', '999', '', '', '', '', '', '', '', '', '', ''}, {'509072', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '', 'Battle_...
Lua
p+cb"], .image-embed[src*="#p+cb"] img { object-position: 50% 60%; } img[alt*="p+ccb"], .image-embed[src*="#p+ccb"] img { object-position: 50% 70%; } img[alt*="p+bc"], .image-embed[src*="#p+bc"] img { object-position: 50% 80%; } img[alt*="p+bcc"], .image-embed[src*="#p+bcc"] img { object-position: 50% 90%; } /...
CSS
ariables, l'&eacute;tude de quelques mn&eacute;moniques ...</FONT></FONT></P> </OL> <UL> <LI><P><A NAME="Var"></A><FONT FACE="Nimbus Sans L"><FONT SIZE=2><U>D&eacute;claration des variables :</U><BR>Comme nous l'avons d&eacute;j&agrave; vu, il existe deux grands types de variables en assembleur : les variables non-...
HTML
.FCastDecryptedMessage import com.futo.platformplayer.casting.models.FCastEncryptedMessage import com.futo.platformplayer.casting.models.FCastKeyExchangeMessage import com.futo.platformplayer.casting.models.FCastPlayMessage import com.futo.platformplayer.casting.models.FCastPlaybackErrorMessage import com.futo.platform...
Kotlin
center}.y-paging .y-jump .y-btn-white,.y-paging .y-jump .y-btn-white:link,.y-paging .y-jump .y-btn-white:visited{padding:0;width:38px;min-width:0;margin-left:4px;*vertical-align:top}.y-paging .y-jump .y-btn-white{width:40px}.y-process{height:26px}.y-process .y-unit{float:left;display:inline;height:26px;background:#ccc;...
CSS
篇文章中,我们将这些组件组合起来,构建MiniMind网络,欢迎持续关注~ --- tags: - 待定系数法 - 区间和 title: '已知等差数列 $S_n$ 和 $S_{3n}$ ,求 $S_{4n}$' ctime: '1753667613417' ctime_f: '2025-07-28 09:53:33' mtime: '1754419162119' mtime_f: '2025-08-06 02:39:22' --- ## 题干 来源: https://www.bilibili.com/video/BV1BBuBzVET6 已知等差数列 $S_{n} = 1,\ S_{3n} - S_{n} = 5$ ...
Markdown
sult<bool>; fn packed_value(&self) -> &[u8]; fn ord(&self) -> i64; fn doc_id(&self) -> DocId; fn mark_ords(&mut self, count: i64, ord_bit_set: &mut LongBitSet) -> Result<()> { for _ in 0..count { let result = self.next()?; if !result { bail!(IllegalState("...
Rust
to b explicitly disposed. * * @param inputs The input array * @returns The result array. */ makeTVMArray(inputs) { return this.ctx.arrayMake(...inputs); } /** * Create a shape tuple to pass to runtime. * @param shape The shape . * @returns The created s...
JavaScript
Y2czEuMDcyLjQzNzggMS41Ljc1MDVjLjQyOS4zNDQuNzk2Ljc1MDUgMS4wNDEgMS4yNTA5LjI0NS41MDAzLjM5OCAxLjEyNTguMzk4IDEuODc2MyAwIDEuNTMyMy0uNTgyIDIuNzIwNy0xLjcxNCAzLjU5NjMtMS4xMzMuODQ0My0yLjcyNCAxLjI4MjItNC43NDQgMS4yODIyLTEuMDQxIDAtMS45OS0uMDYyNi0yLjgxNi0uMjE5LS44MjctLjE1NjMtMS41LS4zMTI3LTIuMTEyLS41MDAzLS41ODItLjE4NzYtMS4wNzEtLjQwNj...
HTML
181.html">Aftermath with Battlelog 3.1.1 HELP ! ENTER PLEASE !!</a></div><div><a href="56850.html">[BUG] Filtersets in serverbrowser bug</a></div><div><a href="56846.html">No Cloud anymore in v3 ??</a></div><div><a href="55901.html">Trying to get AJAX working in BBLog plugin</a></div><div><a href="55744.html">Service ...
HTML
..remove('sw'); } /// Internal only. Map<String, Object?> toMapNoOperations() { return (Map<String, Object?>.from((this as SqfliteLoggerEventView).toMap())) ..remove('operations'); } /// Internal only. Map<String, Object?> toMapNoOperationsNoStopwatch() { return (toMapNoStopwatch())..re...
Dart
_versionRegex = regexp.MustCompile(`\.REV\.[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?Z(\.\d+)?$`) // 9113a718-8285-4b32-9042-f930f1a58ac2.T.2024-05-23T08:25:20.006571811Z <- this HAS a symlink _trashRegex = regexp.MustCompile(`\.T\.[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+...
Go
.Identity;//(for testing) } public void ResetAnimTransform() { AnimRotation = Rotation; AnimTranslation = Translation; AnimScale = Scale; UpdateAnimTransform(); UpdateSkinTransform(); } public static uint ElfHash_Upper...
C#
with the distribution. * * o Neither the name of NXP Semiconductor, Inc. nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIB...
C
elskitchencafe.com" > </picture></figure> <h2 class="wp-block-heading" id="h-rosemary-ranch-marinade">Rosemary Ranch Marinade</h2> <p>It may seem a bit unorthodox to throw ranch dressing into a chicken marinade, but not only does it provide amazing flavor, but it also helps tenderize the chicken for supreme juic...
HTML
on(FormMessage.Ignore, DialogResult.Ignore, ControlType.Cancel); btnIgnore.Enabled = canIgnore; form.ActiveControl = canIgnore ? btnIgnore : btnExit; Button btnOpenLog = form.CreateButton("Show Error Log", x: 9, width: 106); btnOpenLog.Anchor |= AnchorStyles.Left; btnOpenLog.Enabled = loggedSucces...
C#
48 38 C1 00 E0 */ addi r6, r1, 0xe0 /* 803F750C 003F444C CB 87 05 90 */ lfd f28, 0x590(r7) /* 803F7510 003F4450 38 A1 00 C0 */ addi r5, r1, 0xc0 /* 803F7514 003F4454 C9 A7 05 98 */ lfd f13, 0x598(r7) /* 803F7518 003F4458 38 81 00 A0 */ addi r4, r1, 0xa0 /* 803F751C 003F445C C9 87 05 A0 */ lfd f12, 0x5a0(r7) /* 80...
Assembly
# event/__init__.py # Copyright (C) 2005-2025 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php from __future__ import annotations from .api import CANCEL as CANCEL from .api i...
Python
层分级、多规合一的规划编制体系,有计划地组织编制城乡规划。 各类城乡规划应当在上层次城乡规划的基础上编制。在城市总体规划的基础上编制分区规划和首都功能核心区、城市副中心的控制性详细规划;在分区规划的基础上编制控制性详细规划以及乡、镇域规划;在乡、镇域规划的基础上编制村庄规划。 在相关城乡规划的基础上,根据需要编制特定地区的规划和水、电、气、热、交通、信息通信等专项规划,补充、深化有关内容。特定地区规划和专项规划经批准后纳入相应层级的城乡规划。 第十六条 本市空间利用应当坚持先地下后地上、地上与地下相协调、平战结合与平灾结合并重的原则,统筹各类城乡基础设施、公共服务设施和公共安全设施,兼顾军事设施保护的需要,促进空间资源综合开发...
Markdown
.spec.toRemote) assertEquals(1, alice7.commitments.localCommitIndex) assertEquals(2, alice7.commitments.remoteCommitIndex) assertEquals(2, bob7.commitments.localCommitIndex) assertEquals(1, bob7.commitments.remoteCommitIndex) Pair(Pair(alice7, bob7), Pair(prei...
Kotlin
inUrl/utils/player/race/" ) -> request(iframe, ref = data).document.select("source").attr("src") .let { link -> val source = when { iframe.contains("/arch/") -> "Arch" ...
Kotlin
-sidebar-show-hide-button:active { bottom: 0; right: 0; } .split-view button.left-sidebar-show-hide-button.toggled-show > .glyph { -webkit-mask-position: -168px -76px; /* |> */ } .split-view button.left-sidebar-show-hide-button.toggled-hide > .glyph { -webkit-mask-position: -199px -76px; /* |< */ } ....
CSS
utterance belongs to the given language (i.e., the larger the better) # The linear-scale likelihood can be retrieved using the following: print(prediction[1].exp()) tensor([0.9850]) # The identified language ISO code is given in prediction[3] print(prediction[3]) ['th'] # Alternatively, use the utterance embeddin...
Markdown
esraSupernet/Tesra/core/payload" "github.com/TesraSupernet/Tesra/core/signature" "github.com/TesraSupernet/Tesra/core/states" "github.com/TesraSupernet/Tesra/core/store" scom "github.com/TesraSupernet/Tesra/core/store/common" "github.com/TesraSupernet/Tesra/core/store/overlaydb" "github.com/TesraSupernet/Tesra/co...
Go
ocation', '怒らせること,挑発する(される)こと / 〈U〉〈C〉怒らせる原因,挑発するもの'], ['provocative', '(物事が)人を刺激する,挑発的な;(特に性的に)刺激する'], ['provoke', '…‘を\'『怒らせる』,不きげんにする / (ある状態に)〈人〉‘を\'『駆り立てる』 / 〈けんか・議論・関心・感情など〉‘を\'『引き起こす』'], ['provoking', '人を怒らせる,人を刺激する'], ['provolone', 'プロバローニ(芳醇(ほうじゅん)なイタリアチーズ)'], ['provost', '《米》(大学の)事務総長;《英》(大学の)学寮長 / ...
Typescript
tml#a0b7d95368f0c80d5e5c9875057c7dbec">GLFWimage::height</a></div><div class="ttdeci">int height</div><div class="ttdef"><b>Definition:</b> glfw3.h:1724</div></div> <div class="ttc" id="astructGLFWimage_html_a0c532a5c2bb715555279b7817daba0fb"><div class="ttname"><a href="structGLFWimage.html#a0c532a5c2bb715555279b7817d...
HTML
ender h('div')", () => { expect(html(h('div'))).toEqual(`<div></div>`); }); it("should render h('[]')", () => { expect(html(h([h('div', 'first'), h('div', 'second')]))).toEqual( `<div>first</div><div>second</div>` ); expect(html(h(h('div', 'wrapper')))).toEqual(`<div>wrapper</div>`); }); ...
Typescript
v[v_in_flag+2] buffer_load_dwordx4 v[v_gld_b+8:v_gld_b+8+3], v[v_in_os+2], s[s_p_in:s_p_in+3], s[s_in_offset] offen offset:0 s_mov_b64 exec, -1 v_cmpx_le_u32 1, v[v_in_flag+3] buffer_load_dwordx4 v[v_gld_b+12:v_gld_b+12+3], v[v_in_os+3], s[s_p_in:s_p_in+3], s[s_in_offset] offen offset:0 s_mov_b64 ex...
Assembly
.compiler import avail.persistence.cache.record.NamesIndex import avail.persistence.cache.record.NamesIndex.DefinitionType /** * The kinds of manifest entries that can be recorded. If this changes in a * way other than adding enum values at the end, you must rebuild your * repository files. */ enum class SideEff...
Kotlin
<style type="text/css"> .collection ul li ul { display: inherit !important; } </style> </noscript> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-4118503-4']); _gaq.push(['_gat._anonymizeIp']); _gaq.push(['_trackPageview']); (function() { var ga = documen...
HTML
using pdk::lang::Latin1String; using pdk::lang::Latin1Character; using pdk::lang::StringView; using pdk::utils::SharedDataPointer; using pdk::ds::VarLengthArray; using pdk::ds::ByteArray; using internal::LocaleData; using internal::SystemLocale; using internal::LocaleId; namespace internal { #ifndef PDK_NO_SYSTEMLO...
C++
fun diamissDialog() { } override fun showToast(text: String?) { ToastUtil.show(text) } }package com.bilibili.lingxiao.home.find.ui import android.os.Bundle import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentPagerAdapter import c...
Kotlin
ceObject(json, expectedTypes) as List?; if (serviceObject == null) return []; return List<T>.from(serviceObject); } Future<T> extensionCallHelper<T>( VmService service, String method, Map<String, dynamic> args) { return service._call(method, args); } typedef ServiceCallback = Future<Map<String, dynamic>> Fu...
Dart
ща", [185117] = "Пульт Змеиного Святилища", [185118] = "Пульт Змеиного Святилища", [185119] = "Пыльный сундук", [185120] = "Инструмент О'Малли", [185121] = "Переговорное устройство полей Затмения", [185122] = "Пушка Альянса", [185123] = "Рычаг", [185124] = "Плодородная вулканическая почва", [185125] = "Сердце Ярости", ...
Lua
// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language gover...
Go
.IsNil) routers, err := GetRoutersWithAddr(context.TODO(), &app) c.Assert(err, check.IsNil) c.Assert(routers, check.DeepEquals, []appTypes.AppRouter{ { Name: "fake-tls", Addresses: []string{"https://myapp.faketlsrouter.com"}, Address: "https://myapp.faketlsrouter.com", Type: "fake-tls", ...
Go
' : 'r.push(' + line + ');\n') : (code += line != '' ? 'r.push("' + line.replace(/"/g, '\\"') + '");\n' : ''); return add; } while(match = reg.exec(tpl)) { add(tpl.slice(cursor, match.index))(match[1], true); cursor = match.index + match[0].length; } a...
JavaScript
canUseDOM && 'selection' in document && !('getSelection' in window); var ReactDOMSelection = { /** * @param {DOMElement} node */ getOffsets: useIEOffsets ? getIEOffsets : getModernOffsets, /** * @param {DOMElement|DOMTextNode} node * @param {object} offsets */ setOffsets: useIEOffsets ? setIEOf...
JavaScript
else { char tmp[512]; smprintf (tmp, 512, "Can't create a file from dfn '%s'.", name.c_str ()); outputError (tmp); } } return CWinApp::OnDDECommand(lpszCommand); } CMultiDocTemplate *CGeorgesEditApp::getFormDocTemplate (const char *dfnName) { if (Superuser) { return _TemplateForm; } else { P...
C++
', headers:{'content-type':'application/json'}, body: JSON.stringify({sessionId, calibration, forms})}); return r.json(); } export async function getResults(sessionId: string){ const r = await fetch(`${BASE}/results/${sessionId}`); return r.json(); } ``` **录音上传与触发分析(简化示例)** ```ts import { createSession, getUpl...
Markdown
0.farprice", ftypes.DOUBLE) omi_nasdaq_nsmequities_aggregated_itch_v2_0.fields.financial_status_indicator = ProtoField.new("Financial Status Indicator", "nasdaq.nsmequities.aggregated.itch.v2.0.financialstatusindicator", ftypes.STRING) omi_nasdaq_nsmequities_aggregated_itch_v2_0.fields.imbalance_direction = ProtoField....
Lua
"Trimming", "IL3050:RequiresDynamicCode")] [UnconditionalSuppressMessage("Trimming", "IL2026:RequiresUnreferencedCode")] static bool JsonSerialize<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] T>(MagicalBox box, int offset, Utf8JsonWriter writer, JsonSerializerOptions? op...
C#
d='disabled'>").append(t("<img src='"+n.Application.contextUrl+"Areas/VIS/Images/up-arrow.png'>"));ft.append(f);ft.append(u);k.append(ft);v=t("<div class='vis-rad-contantBottom'>");lt=t("<div class='vis-rad-actionIcons'>");d=t("<button class='vis-rad-actionBtn'>").append(t("<img src='"+n.Application.contextUrl+"Areas/...
JavaScript
udit' rf2i9rkrcjg &= tiuxh2ltn7t assert 0, n4ksn2xvlpz raise None r3zsnvvp_k2 def xfxu2q278t8(as3lzgsw1fh: hn1czsjhtx5, ujqp_tkd96b, qc59x5soxmi, ls4_1nup5mx: vrq7w90iuwa, vol3yr7prip, e5ktzjxx7m5: wf_tzas4dbw, ros8amql07d: d_fgih3s0sl): """# alloys_kites_grasp -> compressors_recruit_audit""" re...
Python
toDartString(ffi.Pointer<ffi.Char> pointer) => pointer.cast<Utf8>().toDartString(); /// Release native resources. void dispose() { calloc.free(_buf); _len = 0; _size = 0; } } import 'package:dartbook/cli/logger.dart'; import 'package:dartbook/cli/parser.dart'; import 'package:test/test.dart'; ...
Dart
eb-base64url) エンコーダ/デコーダ実装例 // PHPでのデコーダ実装例は public/psfenw.php /* # packedsfen-web - 256bit(32bytes)バイナリ列 or URL-safe文字列43bytes での将棋局面表現を想定した仕様案 - URL-safe文字列エンコードはbase64url(padding無し)を用いる - +着手の表現は +26bit(282bit,47文字) - +手数の表現は - 0-31手:+6bit(288bit,48文字) - 32-1023手:+12bit(294bit,49文字) - 1024手-32767手:+18bit(...
Typescript
] self.assertRaises( gce.ExceededAttributeCountError, gce.GCE, policy.ParsePolicy( GOOD_HEADER_MAX_ATTRIBUTE_COUNT + GOOD_TERM + DEFAULT_DENY, self.naming), EXP_INFO) def testMaxAttribute(self): self.naming.GetNetAddr.return_value = [nacaddr.IP('10.2.3.4/32')] pol ...
Python
perty.home8 .icon li:last-child{ margin-right: 0; } .feat_property .thumb .thmb_cntnt a.fp_price{ bottom: 15px; font-size: 22px; font-family: "Nunito"; color: #ffffff; font-weight: bold; left: 20px; line-height: 1.2; position: absolute; } .feat_property.home8{ overflow: visible; position: relative...
CSS
); if (dotIndex == -1) { return null; } String topKey = key.substring(0, dotIndex); String nextKey = key.substring(dotIndex + 1); Object nextTarget = mapTarget.get(topKey); return get(nextTarget, nextKey); } else { ...
Java
t[uNumBillboardsToDraw - 1].fov_x = pCamera3D->ViewPlaneDistPixels; pBillboardRenderList[uNumBillboardsToDraw - 1].screenspace_projection_factor_x = billb_scale; pBillboardRenderList[uNumBillboardsToDraw - 1].screenspace_projection_factor_y = billb_scale; ...
C++
уса Того Самого Парня принял простой сероватый цвет.</p> <p>- Извини, не хотел тебя пугать.</p> <p>Кейс выпрямился и засунул руки в карманы куртки. Он был на голову выше "нового".</p> <p>- В следующий раз, пожалуйста, поосторожнее, Люпус.</p> <p>- Вот сообщение для тебя. <em>Зимнее Безмолвие</em>.</p> <p>"Новый" произн...
HTML
ms: types.Params{ MinFee: types.Fee{ RecvFee: nil, AckFee: sdk.Coins{ { Denom: "{}!@#a", Amount: math.NewInt(100), }, }, TimeoutFee: sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, math.NewInt(100))), }, }, }, sdkerrors.ErrInvalidCoins.Error(), ...
Go
httplib::Headers& headers) { std::string s; char buf[BUFSIZ]; for (auto it = headers.begin(); it != headers.end(); ++it) { const auto& x = *it; snprintf(buf, sizeof(buf), "%s: %s\n", x.first.c_str(), x.second.c_str()); s += buf; } return s; } static std::string log(const httplib::Request& req, ...
C++
utableClaims.SetAudience(testAud) // Verify values were set correctly require.Equal(t, testID, claims.GetID()) require.Equal(t, testScope, claims.GetScope()) require.Equal(t, testExp, claims.ExpiresAt) require.Equal(t, testIat, claims.IssuedAt) require.Equal(t, testNbf, claims.NotBefore) require.Equal(t,...
Go
ayBlocks(t *testing.T) { t.Parallel() app := startNewApplicationV2(t, func(c *chainlink.Config, s *chainlink.Secrets) { c.EVM[0].Enabled = ptr(true) c.EVM[0].NonceAutoSync = ptr(false) c.EVM[0].BalanceMonitor.Enabled = ptr(false) c.EVM[0].GasEstimator.Mode = ptr("FixedPrice") solCfg := &config.TOMLConfig{ ...
Go
ENT_MASK_BUTTON_RELEASE | xcb::EVENT_MASK_POINTER_MOTION) as u16, xcb::GRAB_MODE_ASYNC as u8, xcb::GRAB_MODE_ASYNC as u8, default_root_window, xcb::NONE, xcb::BUTTON_INDEX_3 as u8, xcb::MOD_MASK_1 as u16, ); // flush to ensure grab requests are honored conn.f...
Rust
内地雷一大堆还去打仗,分分钟后院起火。 至于啥美国民主示范啥的,美国不是中国不需要输出革命,民主自由是普世价值是正常人都会追求的东西,拿共产党输出意识形态的观点去看美国就错了。 - authorID: 2252 addTime: 2019-11-02T16:00:00.000Z content: >- @[梅菲斯特](/member/%E6%A2%85%E8%8F%B2%E6%96%AF%E7%89%B9) #82 好吧,中共的实力其实就跟朝鲜一个水平,你开心就好。。。 - au...
Markdown
.y(), relative_q.z(), 0.1, 0.01); problem.AddResidualBlock(loop_function, loss_function, q_array[connected_index], t_array[connected_index], q_array[i], t_array[i]); } ...
C++
(new CCPoint(s.Width / 4 * 3, s.Height / 2)); m_z = 0; Schedule (); } public override void Update(float dt) { CCNode sprite; CCCamera cam; m_z += dt * 100; sprite = GetChildByTag(20); cam = sprite.Camera; //cam.SetEyeXy...
C#
in cvpods's standard format output_file: path of json file that will be saved to allow_cached: if json file is already present then skip conversion """ # TODO: The dataset or the conversion script *may* change, # a checksum would be useful for validating the cached data ensure_dir(os....
Python
tero.pirinen@uni-hamburg.de> Date: Tue May 21 12:28:18 2019 +0200 need |---| for markdown tables commit 9e1a9cb91d7c554bfac0c03b23761e59882379ab Author: Flammie Pirinen <flammie@iki.fi> Date: Tue May 21 04:15:26 2019 +0200 Set theme jekyll-theme-midnight commit 70b506522402174ce3168f9031283abe157b3a57 A...
Markdown
security_center"; } case 1: switch (SecurityCenterSavedCodes()) { case SecurityCenterCodes.Unix: return "Status: Unix"; case SecurityCenterCodes.Firewall_Outdated: ...
C#
} return true } func uintID(i uint32) discover.NodeID { var id discover.NodeID binary.BigEndian.PutUint32(id[:], i) return id } // implements discoverTable for TestDialResolve type resolveMock struct { resolveCalls []discover.NodeID answer *discover.Node } func (t *resolveMock) Resolve(id discover.Node...
Go
we succeeded\\n\\tcallback(null);\\n\\treturn true;\\n};\\n\\n/*\\nInformation about this saver\\n*/\\nMsDownloadSaver.prototype.info = {\\n\\tname: \\\"msdownload\\\",\\n\\tpriority: 110,\\n\\tcapabilities: [\\\"save\\\", \\\"download\\\"]\\n};\\n\\n/*\\nStatic method that returns true if this saver is capable of wor...
HTML
thenticateGameCenter( const FString& PlayerId, const FString& BundleId, int64 TimeStampSeconds, const FString& Salt, const FString& Signature, const FString& PublicKeyUrl, const FString& Username, bool CreateAccount, const TMap<FString, FString>& Vars, FOnAuthUpdate Success, FOnError Error) { auto successCa...
C++
the state</td>\n</tr>\n<tr>\n<td><code>message</code></td>\n<td>overrides the default error message for assertion.</td>\n</tr>\n</table>\n<p>Optionally asserts that it matches the specified assertion. See <a href=\"#Assertions\" class=\"name\">Assertions</a> for further details for the assertion arguments. By default ...
HTML
amp(0, dim.width - 1); fy = fy.clamp(0, dim.height - 1); final x = fx.toInt() - (fx >= 0.0 ? 0 : 1); final px = x - 1; final nx = x + 1; final ax = x + 2; final y = fy.toInt() - (fy >= 0.0 ? 0 : 1); final py = y - 1; final ny = y + 1; final ay = y + 2; final dx = fx - x; final dy = fy - y; num ...
Dart
// TODO: 2020/6/29 fixme if (duration > 0) { progressSeekbar.progress = (position * 100 / duration).toInt() } currentTimeTv.text = Util.stringForTime(position) endTimeTv.text = Util.stringForTime(duration) return position.toInt() } // TODO: 2020/5/23 //...
Kotlin
namespace Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.StandardPerfCollector { /// <summary> /// Factory to create different counters. /// </summary> internal static class CounterFactory { /// <summary> /// Gets a counter. /// </summary> ...
C#
#include <stdio.h> #include <omp.h> int main() { int N = 100000; int a[N]; int b[N]; int i; for (i=0; i<N; i++) a[i]=0; for (i=0; i<N; i++) b[i]=i; #pragma omp target parallel for { for (int j = 0; j< N; j++) a[j]=b[j]; } #pragma omp target teams distribute parallel for { ...
C
font-family: Helvetica Neue,Helvetica,Arial; color: white; white-space: normal; word-wrap: break-all !important; line-height: 1.2 !important; text-shadow: 0px 1px 2px rgba(255, 255, 255, 0.7); } *[data-lively-morphid="1"] .messageMorph:hover .messageText, *[data-lively-morphid="1"].messageMorph:hover .messageTex...
HTML
ots: { [options.slotName]: { resolutions: { status: "ER_SUCCESS_MATCH", values: [{ name: "Value 1", }, { name: "Value 2", ...
Typescript
{_errors:[]},a[l]._errors.push(e(i))):a[l]=a[l]||{_errors:[]},a=a[l],s++}}};return r(this),n}static assert(t){if(!(t instanceof Xs))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,mr.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length==...
JavaScript
list builder reference frame */ nsRefPtr<nsRootPresContext> mRootPresContext; /** * The display list builder being used. */ nsDisplayListBuilder* mDisplayListBuilder; /** * A map from ThebesLayers to the list of display items (plus * clipping data) to be rendered in the la...
C
real << endl; cerr << " early: " << num_real_early << endl; cerr << " not early: " << num_real_not_early << endl; cerr << " boolean: " << num_boolean << endl; cerr << " presence: " << num_presence << endl; cerr << " categorical: " << n...
C++
} } } #[wasm_bindgen] pub struct Universe { phys: PhysicsSpace<f64, EuclideanSpace<f64>>, } #[wasm_bindgen] impl Universe { pub fn new() -> Universe { //let mut rng = rand::thread_rng(); let mut rng = OsRng::new().unwrap();; let mut elems = Vec::new(); let speed_range = 2....
Rust
s_result == 1 { return "Advantage player1".to_owned(); } else if minus_result == -1i8 { return "Advantage player2".to_owned(); } else if minus_result >= 2 { return "Win for player1".to_owned(); } ...
Rust
0\u0dd9\u0da0\u0dd2\u0dba\u0dcf\u0dc0" }, { "sk", "*cs" }, { "sl", "*bs" }, { "sm", "*aa" }, { "sn", "*nd" }, { "so", "Jekiya" }, { "sq", "\u00c7eki" }, { "sr", "*mk" }, { "ss", "*aa" }, ...
C#
idempotency resource */ isValidIntent(req: express.Request, idempotencyRequest: IdempotencyRequest): boolean { // Compare original and current requests return ( req.url === idempotencyRequest.url && req.method === idempotencyRequest.method && deepEqual(req.query, idempotencyRequest.query...
Typescript
Property { TERMINAL_PUNC = 0x0001, // ends with terminal punctuation MULTIPLE_TERMINAL_PUNC = 0x0002, // e.g.: She said what?! HAS_CLOSE_PAREN = 0x0004, // e.g.: Mushrooms (they're fungi!!) HAS_SENTENTIAL_CLOSE_PAREN = 0x0008, // e.g.: (Mushrooms are fungi!) }; // A m...
C