content
stringlengths
2
6.21k
label
stringclasses
16 values
class ) } } fun ItemStackSubPredicates.storedEnchantments(block: MutableList<Enchantment>.() -> Unit) { matchers += StoredEnchantmentsComponentMatcher().apply { enchantments = buildList(block) } } fun ItemStackSubPredicates.storedEnchantments(vararg enchantments: Enchantment) = storedEnchantments { addAll(enchant...
Kotlin
a>的数据。</p> </dd> <dt><dfn data-lt="event|events" id="dfn-event" data-dfn-type="dfn">事件</dfn></dt> <dd> <p>用于在计算系统中向其他对象传达某<a href="#dfn-object" class="internalDFN" data-link-type="dfn">对象</a><a href="#dfn-state" class="inter...
HTML
: "http://localhost:8000/cog/tiles/{z}/{x}/{y}?url={url}" }; const lyr = await L.stacLayer(feature, options); lyr.on('click', console.log); lyr.addTo(map); map.fitBounds(lyr.getBounds()); }); </script> </body> </html><!DOCTYPE html> <html lang="en"> <head> <title>{{ te...
HTML
// Send an \r only if the the previous // buffer didn't end with an \r sessionThread.sendViaDataSocket(crnBuf, 1); } } else if(buffer[endPos-1] != '\r') { // The file did not have \r before \n, add it sessionThread.sendViaDataSocket(crnBuf, 1); }...
Java
로 가세요. 거기 더지라는 조그만 고블린을 찾으세요. 그라면 도와줄 수 있을 거예요.$B$B당신이 거기서 대단한 요리사가 되면 다시 돌아와서 잠자에게 뭐라도 좀 가르쳐 줘요. 알았죠? 자, 이제 출발하세요!", ["O"] = "타나리스 사막에 있는 가젯잔으로 가서 더지 퀵클레이브를 만나 당신의 요리 실력 향상에 대해 대화를 나누어야 합니다.", ["T"] = "가젯잔으로 출발!", }, [6612] = { ["D"] = "당신이 들고 있는 요리용 칼을 보니 자질이 좀 있어 보이는군요? 불행하게도 전 아무것도 가르쳐 줄 수 없겠지만요.$B$...
Lua
"mariod", skin = {"white", "red", "blue", "green", "black", "purple"}, team_skin = {2, 3, 4}, series = "mario" }, [0x17] = { name = "roy", skin = {"original", "red", "blue", "green", "yellow", "purple"}, team_skin = {2, 3, 4}, series = "fire_emblem" }, [0x18] = { name = "pichu", skin = {"original...
Lua
= null /** Wrapper run() method to invoke [.timer] properly. */ override fun run() { timer?.cancel(false) timer = JobScheduler.getScheduler().schedule( DumbAwareRunnable { task() }, delay.toLong(), TimeUnit.MILLISECONDS ) } /** Task to run in...
Kotlin
= tvbrange:le_float() subtree = tree:add_le(f.CAMERA_STATUS_p2, tvbrange, value) tvbrange = padded(offset + 16, 4) value = tvbrange:le_float() subtree = tree:add_le(f.CAMERA_STATUS_p3, tvbrange, value) tvbrange = padded(offset + 20, 4) value = tvbrange:le_float() subtree = tree:add_le(f.CAM...
Lua
// border-image // border-radius // border-top-left-radius // border-top-right-radius // box-shadow // box-sizing // brightness // calc // column-count // column-gap // column-rule // column-width // columns // contrast // display // drop-shadow // filter // flex // flex-basis // flex-direction // ...
CSS
mple: jle -> jg // 'Set' instruction can be negated, example: seta -> setbe // If the opcode cannot be negated, return m_nop THREAD_SAFE mcode_t hexapi negate_mcode_relation(mcode_t code); // Swap a conditional opcode. // Only conditional jumps and set instructions can be swapped. // The returned opcode the one requi...
C++
t.name,10),u,A=Number.isFinite(n);if(A?n>=0&&n<e.args.length&&(u=e.args[n]):Object.hasOwn(r.variables,t.name)?u=r.variables[t.name]:Object.hasOwn(r.environment,t.name)&&(u=r.environment[t.name]),typeof u<"u"&&t.alternativeValue?u=(await Qd(t.alternativeValue,e,r)).join(" "):typeof u>"u"&&(t.defaultValue?u=(await Qd(t.d...
JavaScript
0), mRelocScore_pl(0), mnBAGlobalForKF(0), fx(initkf.fx), fy(initkf.fy), cx(initkf.cx), cy(initkf.cy), invfx(initkf.invfx), invfy(initkf.invfy), mbf(initkf.bf), mb(initkf.b), mThDepth(initkf.ThDepth), N(initkf.N), N_l(initkf.N_l), mvKeys(initkf.vKps), mvKeysUn(initkf.vKpsUn), mvuRight(initkf.vRight), mvDept...
C++
ble_get_cell_value(lv_obj_t * obj, uint16_t row, uint16_t col); /** * Get the number of rows. * @param obj table pointer to a Table object * @return number of rows. */ uint16_t lv_table_get_row_cnt(lv_obj_t * obj); /** * Get the number of columns. * @param obj table pointer to a Table objec...
C
-arrow-width; border-bottom-width: 0; border-top-color: @popover-arrow-color; } } &.right .arrow { top: 50%; left: -@popover-arrow-outer-width; margin-top: -@popover-arrow-outer-width; border-left-width: 0; border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback ...
CSS
pne dla zwykłej osoby.\n<br/><br/>\nTo rozwiązanie to Dandelion++ (DPP), który jest ulepszeniem dla pomysłu Dandelion pierwotnie opracowanego dla Bitcoina. W tym protokole istnieją dwie fazy, stem phase i fluff phase; razem mają reprezentować dojrzewanie dmuchawca.\n<br/><br/>\nW fazie stem, co kilka minut, węzeł wysył...
Dart
""" """ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from ...biased_nfw_phase_space import BiasedNFWPhaseSpace from ...nfw_phase_space import NFWPhaseSpace __all__ = ('test_biased_unbiased_agreement1', ) conc_bins = np.linspace(2, 30, 10) gal_bias_bins = np....
Python
/* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04...
C
(function (e) { e.preventDefault (); var val = $(this).data ('value'); $field.val (val); $this.find ('a').removeClass ('toggle-active'); $(this).addClass ('toggle-active'); }); $this.find ('a[data-value=' + $field.val () + ']').addClass ('toggle-active'); }); {% if rows %} /** * Backgroun...
HTML
我们可以快速的搭建一个简单的 HTTP 服务器。该服务器允许我们监听任意端口并提供一个回调函数,该函数将在每个传入请求时调用。 回调将接收两个参数:一个 [Request 对象](https://nodejs.org/dist/latest-v6.x/docs/api/http.html#http_class_http_incomingmessage)和一个 [Response 对象](https://nodejs.org/dist/latest-v6.x/docs/api/http.html#http_class_http_serverresponse)。Request 对象将填充有关请求的有用属性,而 Response 对象将...
Markdown
2, and the value `3 XOR 1 = 2` is minimal. **Constraints:** * <code>1 <= num1, num2 <= 10<sup>9</sup></code>2446\. Determine if Two Events Have Conflict Easy You are given two arrays of strings that represent two inclusive events that happened **on the same day**, `event1` and `event2`, where: * <code>event1 =...
Markdown
#### SSH 如果您想连接到远程主机进行操作,您可以在集群列表页面点击集群名称,进入详情页面,选择要连接的主机,点击右侧 **Execute Shell** 按钮。 ![](/img/k3s/ssh-node.png) #### 开启 kube-explorer dashboard 您可以在创建集群时,通过 Additional Options 选择 explorer 选项开启 kube-explorer 功能。 ![](/img/k3s/launch-kube-explorer.png) 也可以通过右侧下拉菜单中选择 Enable Explorer 功能来开启 kube-explorer。 ![](/img/...
Markdown
S,\n) -&gt; <a class=\"enum\" href=\"https://doc.rust-lang.org/nightly/core/result/enum.Result.html\" title=\"enum core::result::Result\">Result</a>&lt;&lt;S as <a class=\"trait\" href=\"https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\" title=\"trait serde::ser::Serializer\">Serializer</a>&gt;::<a class=...
JavaScript
xceptionWithMockData(t *testing.T) { // Test the core logic using direct function calls since we can't easily mock file parsing testCases := []struct { name string installedVersion string fixedVersions []string patchLevel string packageName string expected string descri...
Go
.db.models.deletion.CASCADE, to=swapper.get_model_name("openwisp_users", "Organization"), verbose_name="organization", ), ), ], options={ "abstract": False, }, bases=(openw...
Python
/* * Copyright (C) 2016-17 Synopsys, Inc. (www.synopsys.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __SOC_ARC_TIMERS_H #define __SOC_ARC_TIMERS_H #include...
C
Values) </a> JavaScript 的函数比较特殊的是可以接受任意个数的参数,完全无视函数声明中的参数个数。这允许你通过自行给未传值的参数赋默认值来定义带有不同参数的函数。本章将介绍 ECMAScript 6 及之前的 ECMAScript 版本如何实现默认参数,同时引出的还有 arguments 对象,参数表达式(expressions as parameters)及 TDZ 的另一形式。 <br /> #### ECMAScript 5 默认参数模拟(Simulating Default Parameter Values in ECMAScript 5) 在 ECMAScript 5 或更早的版本中,你可能...
Markdown
pg = pg or {} pg.equip_data_statistics_130 = { [17148] = { id = 17148, base = 17140, ammo_info = { { 6, 50448 } }, weapon_id = { 17148, 81148 } }, [17149] = { id = 17149, base = 17140, ammo_info = { { 6, 50449 } }, weapon_id = { 17149, 81149 } }, [171...
Lua
nction:cubic-bezier(0.5, 1, 0.89, 1);width:50%;z-index:1}@media(prefers-reduced-motion){.ToggleSwitch-knob{transition:none}}.ToggleSwitch-status{color:var(--color-fg-default);font-size:var(--text-body-size-medium, 14px);line-height:1.5;position:relative;text-align:right}.ToggleSwitch-statusIcon{display:flex;margin-top:...
CSS
} } } import {Feature, Filter, Collection} from 'sofp-lib'; import {FilterProvider} from '../filter_provider'; import * as moment from 'moment'; import * as express from 'express'; import * as _ from 'lodash'; class TimeFilter implements Filter { filterClass : string = 'TimeFilter'; parameters = { ...
Typescript
using System; using System.Collections.Generic; using System.Linq; using System.Text.Json.Nodes; using System.Threading; using System.Threading.Tasks; using LenovoLegionToolkit.Lib.Extensions; namespace LenovoLegionToolkit.Lib.PackageDownloader; public class PCSupportPackageDownloader(HttpClientFactory httpClientFac...
C#
(false, () -> fail("Test 3 failed")); } } ``` 请注意,在本例中,由于未满足假设,因此跳过了前两个测试(`assumeTrueTest`和`assumeFalseTest`。然而,在`assummingThatTest`测试中,只有这部分测试(本例中为 Lambda 表达式)没有执行,但整个测试没有跳过: ![](img/00059.gif) 假设的执行测试示例 # 嵌套测试 嵌套测试为测试编写器提供了更多的功能来表示一组测试中的关系和顺序。JUnit5 可以轻松地嵌套测试类。我们只需要用`@Nested`注释内部类,其中的所有测试方法也将执行,从常规测试(在顶级类中定...
Markdown
on: crate::Reg<u1otgcon::U1OTGCON_SPEC>, #[doc = "0x34 - U1OTGCONCLR register"] pub u1otgconclr: crate::Reg<u1otgconclr::U1OTGCONCLR_SPEC>, #[doc = "0x38 - U1OTGCONSET register"] pub u1otgconset: crate::Reg<u1otgconset::U1OTGCONSET_SPEC>, #[doc = "0x3c - U1OTGCONINV register"] pub u1otgconinv: c...
Rust
start" x="860.25" y="-2742.32" font-family="Helvetica,sans-Serif" font-size="9.00">index.mjs</text> </a> </g> </g> <!-- src/main/cruise.mjs&#45;&gt;src/enrich/index.mjs --> <g id="edge235" class="edge"> <title>src/main/cruise.mjs&#45;&gt;src/enrich/index.mjs</title> <path fill="none" stroke="#007766" stroke-width="2" s...
HTML
* <td><font size="-1">currencyEnumeration</font></td> * * </tr> * </tbody> * </table> * * @param value Currency of the price amount for an item. */ public void setCurrency(CurrencyEnumeration value); /** * Currency of the price amount for an item. * * <table ...
Java
#pragma once #include <opencv2/core/core.hpp> #include "CStruct.h" namespace seeta { namespace cv { // using namespace ::cv; class ImageData : public SeetaImageData { public: ImageData( const ::cv::Mat &mat ) : cv_mat( mat.clone() ) { width ...
C
ndicates a domain this element is * not responsible for, the Request-URI MUST be placed into the target * set as the only target, and the element MUST proceed to the task of * Request Forwarding (Section 16.6). */ if (!is_uri_local(target)) { proxy_postprocess(tdata); return PJ_S...
C
51 IEJlcnVmcw== 141152 IG9sdWs= 141153 2YLYp9im2YI= 141154 IGNvcnJlZw== 141155 IHRyYXZhaWxsw6k= 141156 IGZhY2lsaWRhZA== 141157 IGZlbsOqdHJlcw== 141158 IHNwb3J0aWY= 141159 IOCwquCwvuCwsuCxjeCwlw== 141160 IGFkZXF1YWRh 141161 IFZsYWFuZGVyZW4= 141162 IGtheXNh 141163 IHZlcmtpZXo= 141164 IGRpc3RpbnRv 141165 4KaV4Kam4KeH4Kaw ...
Kotlin
al DistributedMember newCoord = MembershipManagerHelper.getCoordinator(system); logger.info("coordinator after shutdown of locator was " + newCoord); if (newCoord == null || coord.equals(newCoord)) { fail("another member should have become coordinator after the locator was stopped: " + newCoord)...
Java
/* * Copyright 2009-2017 Alibaba Cloud 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
warn!("{}", e), Some(Ok(Err(e))) => warn!("{}", e), Some(Ok(Ok(crawl_response))) => { spiders_finished = false; let SpiderResponse { mut new_findings, crawl_link, ...
Rust
ERNET_CONNECTION_ABORTED</td> <td>&quot;Соединение разорвано&quot; <p>&quot;Connection aborted&quot;</td> </tr> <tr> <td class="gray">ERROR_CANCELLED</td> <td class="gray">&quot;Операция отменена&quot; <p>&quot;Operation cancelled&quot;</td> </tr> <tr> <td>ERROR_NO_NETWORK</td> <...
HTML
00 rx=4 fill="#880000" seg_name="_12o"/> <rect id="_12p" x=14213.02 y=1281.00 width=44.40 height=5.00 rx=4 fill="#ff0000" seg_name="_12p"/> <!--dawn:--> <rect x=14213.02 y=1281.00 width=0.20 height=5.00 rx=4 fill="#ff8888" seg_name="_12p"/> <!--dusk:--> <rect x=14255.33 y=1281.00 width=2.09 height=5.00 rx=4 ...
HTML
div.error{padding:0 .6em;margin:5px 15px 2px}div.updated p,div.error p{margin:.5em 0;padding:2px}.wrap div.updated,.wrap div.error,.media-upload-form div.error{margin:5px 0 15px}.wrap h2,.subtitle{font-weight:normal;margin:0;text-shadow:#fff 0 1px 0}.wrap h2{font-size:23px;padding:9px 15px 4px 0;line-height:29px}.subti...
CSS
ALE_1_1Task__properties.html", null ], [ "SRTX::Task_properties", "classSRTX_1_1Task__properties.html", null ], [ "units::Tesla", "classunits_1_1Tesla.html", null ], [ "SCALE::Test_task_ext", "classSCALE_1_1Test__task__ext.html", null ], [ "SRTX::Transfer_item", "structSRTX_1_1Transfer__item.html", null...
JavaScript
On finish, all tets collected // // in BC_i(p) are infected. B_i(p) is not closed. C(p) must be formed before // // this routine. Check the infect flag of a subface to identify the unclosed // // sides of B_i(p). These sides will be closed by new subfaces of C(p)s. // // ...
C++
* See [LegacyFlickerTestFactory.nonRotationTests] for configuring screen orientation and * navigation modes. */ @Parameterized.Parameters(name = "{0}") @JvmStatic fun getParams(): Collection<FlickerTest> { return LegacyFlickerTestFactory.nonRotationTests( ...
Kotlin
rm * vec4(v_Tex.x, v_Tex.y, 0f.lit, 1f.lit))["xy"])) //SET(out, texture2D(u_Tex, vec2(0f.lit, 0f.lit))) //SET(out, vec4(1f, 0f, 1f, 1f)) } // Radial gradient paint PROGRAM_TYPE_GRADIENT_RADIAL -> { ...
Kotlin
bbb &lt;/li&gt; &lt;li&gt; ccc &lt;/li&gt; &lt;/ul&gt; </pre> <br> <a name="tut-escape"></a> <h3 class="section2">Escape</h3> <p>Erubis has ability to escape (sanitize) expression. Erubis::Eruby class act as the following: </p> <ul type="disc"> <li><code>&lt;%= <em>expr</em> %&gt;</code> - not e...
HTML
# $Id$ # # Copyright (C) 2009-2012 Internet Systems Consortium ("ISC") # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS I...
Python
+ clients (" + name.Length + ") '" + name + "'"); } name = name.Substring(0, byte.MaxValue); } if (desc.Length > byte.MaxValue) { if (log.IsWarnEnabled) { log.Warn(q.GetType().ToString() + ": description is too long for 1.68+ clients (" + desc.Length + ") '" + desc + "'"); ...
C#
name: "test",lname: "test_XXX"} try{ await users.registerUser(us,cred) } catch(e){ console.log('user is already present'); } users.getUser(cred) .then((repl) => { expect(repl).to.be.an('object'); expect(repl.name).to.be.equal(us.name); expect(repl.lname).to.be.equal(us.lname); }) .catch(err => { throw...
Typescript
if (!HandleErrorInExcessFrame(f, entryFrame)) return false; } } return true; } #if defined JS_MONOIC static void UpdateTraceHintSingle(Repatcher &repatcher, JSC::CodeLocationJump jump, JSC::CodeLocationLabel target) { /* * Hack: The value that will be patched is b...
C++
log(mySet.size); // 1 출력 ``` 아래와 같이 똑같은 값을 추가하면 중복된 값으로 인식해서 추가가 안되는 것을 볼 수 있다. (집합의 성질) ```jsx const mySet = new Set(); mySet.add("value1"); mySet.add("value2"); mySet.add("value2"); console.log(mySet.size); // 2 출력 ``` <br> 특정 키가 Map에 존재하는지 여부를 확인하려면 set() 메소드를 사용한다. ```jsx console.log(mySet.has("value1")); // ...
Markdown
MsgPackReader).GetProperty ("Type").GetGetMethod ()); il.EmitLdc ((int)TypePrefixes.Nil); il.Emit (OpCodes.Beq_S, lblNullReturn); } il.EmitLd (msgpackReader); il.Emit (OpCodes.Call, typeCheckMethod); il.Emit (OpCodes.Brtrue_S, lblPassed); il.Emit (OpCodes.Br, lblFailed); if (nullCheckAndReturn...
C#
void MacDoOneEvent() ; WXEVENTREF MacGetCurrentEvent() { return m_macCurrentEvent ; } void MacHandleOneEvent( WXEVENTREF ev ) ; // For embedded use. By default does nothing. virtual void MacHandleUnhandledEvent( WXEVENTREF ev ); #if !TARGET_CARBO...
C
} .mdc-tooltip__surface::before { position: absolute; box-sizing: border-box; width: 100%; height: 100%; top: 0; left: 0; border: 1px solid transparent; border-radius: inherit; content: ""; pointer-events: none; } @media screen and (forced-colors: active) { .mdc-tooltip__surface::before { bor...
CSS
toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#3858e9}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:ho...
CSS
"vout": [ { "value": 8.746e-05, "n": 0, "scriptPubKey": { "asm": "0 2686e3500b6aa92d2d0c3448c4d94492cacebe87", "hex": "00142686e3500b6aa92d2d0c3448c4d94492cacebe87", "address": "tb1qy6rwx5qtd25j6tgvx3yvfk2yjt9va058q6rtfh", "type": "witness_v0_keyhash" } ...
Dart
d = 0xDD57 PTP_OPC_Owner = 0xDD5D PTP_OPC_Editor = 0xDD5E PTP_OPC_Webmaster = 0xDD5F PTP_OPC_URLSource = 0xDD60 PTP_OPC_URLDestination = 0xDD61 PTP_OPC_TimeBookmark = 0xDD62 PTP_OPC_ObjectBookmark = 0xDD63 PTP_OPC_ByteBookmark = 0xDD64 PTP_OPC_LastBuildDate = 0xDD70 PTP_OPC_TimetoLive = 0xDD71 PTP_OPC_MediaGUID = 0xDD7...
Python
}"#, 21, ); } #[test] fn test_resolve_local_name_shadow() { do_check_local_name( r" fn foo(x: String) { let x : &str = &x; x<|> }", 46, ); } } //! Tests auto-converted from "sass-spec/spec/libsass-clo...
Rust
t.Fatalf("Test (%d, %d): expected extended public key %s but got %s", i, j, path.extendedPublicKey, extendedPublicKey.String()) } decodedExtendedPublicKey, err := DeserializeExtendedKey(extendedPublicKey.String()) if err != nil { t.Fatalf("DeserializeExtendedPublicKey: %+v", err) } if extended...
Go
/ 1000L @BeforeAll fun setUp() { underTest = DeviceFolderNodeMapper() } @Test fun `test that the mapped device folder has an error status`() { val backupId = 123456L val backupName = "Backup One" val backupType = BackupInfoType.CAMERA_UPLOADS val backupUser...
Kotlin
er the name of the Su Zhenyu 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 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF M...
C++
ignore_for_file: library_private_types_in_public_api // ignore_for_file: non_constant_identifier_names // ignore_for_file: public_member_api_docs // ignore_for_file: type_literal_in_constant_pattern // ignore_for_file: use_super_parameters // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: unnecess...
Dart
u51b3\u9057\u7559\u95ee\u9898\uff0c\u7b49\u5230\u51ac\u5b63\u624d\u641e\u6c11\u4e3b\u56e2\u7ed3\u548c\u8fdb\u884c\u7cfb\u7edf\u7684\u6559\u80b2\uff0c\u5e76\u7ed3\u5408\u67e5\u7530\u8bc4\u4ea7\u53d1\u571f\u5730\u8bc1\u3002\u5982\u6b64\uff0c\u5373\u53ef\u4fdd\u8bc1\u590d\u67e5\u5730\u533a\u5728\u6625\u8015\u65f6\u53ef\u9...
HTML
pc} ldrsb r0, [sl, #0x15] add r5, sl, #0x1b8 cmp r0, #1 bne _0206FEB0 ldr r1, [r5, #0xc] ldr r2, [r5] mov r0, #0 bl ArrayFill32Fast ldr r0, [r5, #0xc] ldr r1, [r5] bl sub_0207A2DC mov r0, #0 strb r0, [sl, #0x15] _0206FEB0: mov r0, #0 strb r0, [r5, #0x2c] ldr r1, [sl, #0x3c] ldr r0, _02070080 ; =0x00FFB...
Assembly
nav { display: none; /* Hide by default, but at >768px, show it */ padding-bottom: 10px; } nav[data-toggle='toc'] .nav .nav > li > a { padding-top: 1px; padding-bottom: 1px; padding-left: 30px; font-size: 12px; font-weight: normal; } nav[data-toggle='toc'] .nav .nav > li > a:hover, nav[data-toggle='toc'] ...
CSS
Linq; using Foundation; using AppKit; namespace RestSsoAdminSnapIn { public partial class ShowComputers : AppKit.NSWindow { #region Constructors // Called when created from unmanaged code public ShowComputers (IntPtr handle) : base (handle) { Initialize (); } // Called when created directly from a...
C#
{ if (indexByName.TryGetValue(objName, out int idx) && idx >= 0 && idx < results.Count) objectiveValues.Add(results[idx]); else objectiveValues.Add(1e30); // Penalty if not found } // Total fitness ...
C#
false; if (!calced) { calced = true; CalcCreatableVersions(); } return CreatableVersions[creatableIndex]; } /*==LICENSE==* CyanWorlds.com Engine - MMOG client, server and tools Copyright (C) 2011 Cyan Worlds, Inc. This program is free software: you can redistribute it and/or modify ...
C++
理流式请求。 2. **资源效率**:相比多线程/多进程更节省内存,适合小内存(比如 1GB RAM)机器。 3. **稳定性**:Gunicorn 能自动管理工作进程并在崩溃后重启。 4. **流式响应优化**:Gevent 优化长连接,避免客户端超时。 # comv 動画圧縮用コマンド ``` % comv -h compress videos in a directory. Usage: comv [OPTIONS] <INPUT_DIR> Arguments: <INPUT_DIR> path of the directory that contains uncompressed videos Options...
Markdown
fun testCorrectBrushColorIsSet() { val drawingView = setupDrawingView() touchView(drawingView, MotionEvent.ACTION_DOWN) val shapeColor = Color.RED drawingView.currentShapeBuilder.withShapeColor(shapeColor) touchView(drawingView, MotionEvent.ACTION_DOWN) assertEquals(draw...
Kotlin
`nativeVideoCaptureImagePeek()`, `nativeVideoCaptureImageCount()`, `nativeVideoCaptureImageCapacity()`. /// /// Returns error string or nullptr const char *nativeVideoCaptureStart(uint32_t frameWidth, uint32_t frameHeight, uint32_t frameRate, NativeCaptureFrameReceiver receiver); /// Causes video capture from the...
C
#region License Information /* HeuristicLab * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free So...
C#
list.retainWhere((x) => false); }); throws("sort", () { list.sort(); }); throws("shuffle", () { list.shuffle(); }); throws("clear", () { list.clear(); }); throws("removeAt", () { list.removeAt(0); }); throws("removeLast", () { list.removeLast(); }); throws("setRange", ...
Dart
个段合并在一起,如 [图 3-3](/v1/ddia_0303.png) 所示。段被写入后永远不会被修改,所以合并的段被写入一个新的文件。冻结段的合并和压缩可以在后台线程中完成,这个过程进行的同时,我们仍然可以继续使用旧的段文件来正常提供读写请求。合并过程完成后,我们将读取请求转换为使用新合并的段而不是旧的段 —— 然后旧的段文件就可以简单地删除掉了。 ![](/v1/ddia_0303.png) **图 3-3 同时执行压缩和分段合并** 每个段现在都有自己的内存散列表,将键映射到文件偏移量。为了找到一个键的值,我们首先检查最近的段的散列映射;如果键不存在,我们就检查第二个最近的段,依此类推。合并过程将保持段的数量足够小,所...
Markdown
Host if targetHost != "" && targetHost != domain { // Add port if not present if _, _, err := net.SplitHostPort(targetHost); err != nil { targetHost = targetHost + ":443" } // Update TLS config for new host redirectConfig := new(tls.Config) *redirectConfig = *cConfig redire...
Go
"]=3531 -- 购买主题 GMsgNo["DormProto:BuyThemeRet"]=3532 -- 购买主题返回 GMsgNo["DormProto:StoreTheme"]=3533 -- 收藏主题 GMsgNo["DormProto:StoreThemeRet"]=3534 -- 收藏主题返回 GMsgNo["DormProto:AgreeTheme"]=3535 -- 点赞主题 GMsgNo["DormProto:AgreeThemeRet"]=3536 -- 点赞主题返回 GMsgNo["DormProto:ShareTheme"]=3537 -- 分享主题 GMsgNo["DormProto:Sh...
Lua
/* Copyright 2015-present MongoDB 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 applicable law or agreed to in wri...
C#
발생하므로 캐시(TLB)를 사용한다 <br> ## 세그먼테이션 기법 <img width="700" alt="image" src="https://user-images.githubusercontent.com/71180414/149679442-6fb45e66-002d-4d72-9b59-23be57410452.png"> - 프로세스를 **가변 분할** 기법을 사용하여 가변 영역인 세그먼트로 잘라 메모리에 적재하는 방식 - **세그먼트 테이블**을 사용한다 - index : 세그먼트 번호 - base : 시작 주소 - limit : 세그먼트 크기 ...
Markdown
import argparse import gaussian_diffusion_loss as gd class Training_args(argparse.Namespace): data_dir = "" schedule_sampler = "batch" lr = 1e-4 weight_decay = 0.0 lr_anneal_steps = 100000 microbatch = -1 # -1 disables microbatches log_interval = 10 save_interval = 5e3 mmd_alpha =...
Python
skin: 'black', format: 'yaml', panels: panels, navigation: 'split', nav: ['docs', 'components', 'information'], favicon: '/theme/favicon.png', labels: { search: { placeholder: 'Search components…', }, documentation: { title: 'Documentation', ...
JavaScript
0, 2 /* 80209158 00204DB8 40 82 00 0C */ bne lbl_80209164 /* 8020915C 00204DBC C0 23 00 04 */ lfs f1, 4(r3) /* 80209160 00204DC0 48 00 00 0C */ b lbl_8020916C lbl_80209164: /* 80209164 00204DC4 FC 20 F8 90 */ fmr f1, f31 /* 80209168 00204DC8 48 00 83 FD */ bl func_80211564 lbl_8020916C: /* 8020916C 00204DCC C0 5F...
Assembly
aa8d601ea89af845", "events":[ { "app":{ "releaseStage":"" }, "context":"/handled", "device":{ "hostname": "%s" }, "exceptions":[ { "errorClass":"*errors.errorString", "message":"Ooopsie", "stacktrace":[] } ], "payloadVersion":"4", "severity":"wa...
Go
te::verify(). auto roots = QSslConfiguration::defaultConfiguration().caCertificates(); #ifndef Q_OS_WIN // On Windows, system CA certificates are already set as default ones. // No need to add them again (and again) and also, if the default configuration // has its own set of CAs, this probably should n...
C++
with this program. If not, see <http://www.gnu.org/licenses/>. */ package com.codebutler.retrograde.metadata.ovgdb.db.entity import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.Index import androidx.room.PrimaryKey @Entity( tableName = "roms", indices = [Index("romFileN...
Kotlin
l00525"></a>00525 <a name="l00526"></a>00526 <span class="comment">// The tile has not already been cached. Call the</span> <a name="l00527"></a>00527 <span class="comment">// tileGenerator function to produce the tile, passing</span> <a name="l00528"></a>00528 <span cl...
HTML
t0132564193bbb5cd42.png" title="t01a9ccb854b3964083.png" alt="http://p5.qhimg.com/t01a9ccb854b3964083.png"/></p><p style="text-align: center; text-indent: 0em;"><span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">图7. 发往C&amp;C服务器的GUID以及收到的响应报文</span></p><p style="text-align:center"><img src="http://p6.qhimg.c...
HTML
Model(PxFEMSoftBodyMaterialModel::Enum model) { mMaterial.materialModel = PxU16(model); updateMaterial(); } PxFEMSoftBodyMaterialModel::Enum NpFEMSoftBodyMaterial::getMaterialModel() const { return PxFEMSoftBodyMaterialModel::Enum(mMaterial.materialModel); } ///////////////////////////////////////////////////////...
C++
" redis.call('zrem', KEYS[2], lruItem); " + " redis.call('zrem', KEYS[3], lruItem); " + " redis.call('zrem', lastAccessTimeSetName, lruItem); " + "...
Java
= sb.ToString(); if (promptTrim) { // 去除开头末尾的换行符和空格 historyText = historyText.Trim(); } if (!thinking) { // 跳过思考过程 historyText += stopThinking; } //Console.WriteLine(sb....
C#
D does not match expected } } p.SetPreloadHint("PART", "test05.2.m4s") partTargetDuration := p.PartTargetDuration serverControl := ServerControl{0.0, false, 0.0, partTargetDuration * 3, true} e = p.SetServerControl(&serverControl) is.NoErr(e) // Set server control should be successful // Output only partial...
Go
p> <p> 中国的劳动人民和中国的共产党员无论是在为解放自己祖国而进行革命斗争的时期,还是在社会主义建设年代,都充分地感到了苏联人民和我们党的兄弟支援。中华人民共和国一成立,苏联政府就同人民中国的政府缔结了友好同盟互助条约,这个条约是抵御帝国主义侵犯的强大手段,是加强远东和全世界和平的因素。 </p> <p> 苏联人民把自己多年来建设社会主义的全部经验和科学技术成就慷慨地介绍给了自己的中国兄弟。我国过去和现在对发展人民中国的经济给予了相当大的援助。在苏联的积极援助下,人民中国建成了用最新设备装备起来的一百九十八项工业企业、车间和项目。在我国的协助下,中国建立了汽车、拖拉机、飞机等等新的工业部门。苏联给了中国...
HTML
inOp.MOV, r1, r10, true)) b1.add(SbfInstruction.Bin(BinOp.SUB, r1, Value.Imm(24UL), true)) b1.add(SbfInstruction.Bin(BinOp.MOV, r2, r10, true)) b1.add(SbfInstruction.Bin(BinOp.SUB, r2, Value.Imm(104UL), true)) b1.add(SbfInstruction.Bin(BinOp.MOV, r4, r10, true)) b1.add(SbfInstruc...
Kotlin
params.name as string}".` ); return null; } else if (match.length !== 1) { const matchCount = match.length; const parsed = match.splice(0, 20).map(schemaItem => `${schemaItem.defindex} (${schemaItem.name})`); let reply = `I've found ${matchCount} ite...
Typescript
*{ background: var(--color-secondary-click); } .uk-offcanvas.uk-secondary *{ color: var(--color-default)!important; } /* TODO: css compiled */ /* * Reset list */ .uk-switcher { margin: 0; padding: 0; list-style: none; } /* Items ========================================...
CSS
1_1device_1_1GemmSplitKParallel.html">GemmSplitKParallel</a></li><li class="navelem"><a class="el" href="structcutlass_1_1gemm_1_1device_1_1GemmSplitKParallel_1_1Arguments.html">Arguments</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">cutlass::gemm::device:...
HTML
) { GstMpegVideoMeta *mpeg_video_meta; mpeg_video_meta = (GstMpegVideoMeta *) gst_buffer_add_meta (buffer, GST_MPEG_VIDEO_META_INFO, NULL); GST_DEBUG ("seq_hdr:%p, seq_ext:%p, disp_ext:%p, pic_hdr:%p, pic_ext:%p, quant_ext:%p", seq_hdr, seq_ext, disp_ext, pic_hdr, pic_ext, quant_ext); ...
C
.ajdm_wheelview_text) } else { val spd = speedString + metric textPaint.color = getColorEx(R.color.ajdm_wheelview_text) canvas.drawText(spd, outerArcRect.centerX(), speedTextRect.bottom + speedTextKPHHeight * 3.3f, textPaint) } } else { ...
Kotlin
music.marketplace>rec.music.marketplace</A><DD> Records, tapes, and CDs: wanted, for sale, etc. <DT><A NAME=rec.music.misc HREF=news:rec.music.misc>rec.music.misc</A><DD> Music lovers' group. <DT><A NAME=rec.music.newage HREF=news:rec.music.newage>rec.music.newage</A><DD> "New Age" music discussions. <DT><A NAME=rec...
HTML