content
stringlengths
2
6.21k
label
stringclasses
16 values
print('--------------------| 筛选level时报错:', e) try:cs.close() except Exception: pass return None try: cs.close() except: pass return month_order_sell_count_by_day_list def select_one_year_every_month_order_sell_count(self, year):...
Python
-link-type="property" href="https://drafts.csswg.org/css-inline-3/#propdef-baseline-shift" id="ref-for-propdef-baseline-shift①">baseline-shift</a>, <a class="css property" data-link-type="property" href="#propdef-clip" id="ref-for-propdef-clip②">clip</a>, <a class="css property" data-link-type="property" href="#propdef...
HTML
%{ -webkit-transform: translate(40px,40px) rotate(45deg); -ms-transform: translate(40px,40px) rotate(45deg); -o-transform: translate(40px,40px) rotate(45deg); transform: translate(40px,40px) rotate(45deg); } 50%{ -webkit-transform: translate(0px,80px) rotate(0deg); -ms-tra...
CSS
dFailureMetric\x12&\n" + "\x0fexport_as_gauge\x18\t \x01(\bR\rexportAsGauge\x12E\n" + "\x16latency_metric_pattern\x183 \x01(\t:\x0f^(.+_|)latency$R\x14latencyMetricPattern\x12X\n" + "\x19additional_labels_env_var\x184 \x01(\t:\x1dCLOUDPROBER_ADDITIONAL_LABELSR\x16additionalLabelsEnvVar\x12`\n" + "\x13prometheus_sur...
Go
�政府预先油印如下的通知:“查你乡小学教员某某工作不负责任,思想落后。在此次农民翻身运动中,有的包庇地主,有的对抗押金,破坏政策,不合人民教师标准,应予撤职。”明知清洗错了的也不改正,说是“将错就错吧”。 </p> <p> 为了结束普遍存在着的学校工作中的混乱现象,西南局决定了采用大张旗鼓的方法,连续在报纸上发表了一系列的报导和评论。西南局和西南军政委员会同时发布了公开的指示,规定: </p> <p> (一)学校内一切教育工作和行政工作,均由学校行政当局统一领导;一切社会活动则由该校教育工会与学生会统一领导,并取得学校行政当局之支持与协助。学校中的一切工作均应以完成学校教育计划为基本任务。 </p> ...
HTML
RF_POWER", 5, nil, "蓝牙发射功率", 2); -- B. 输出ctext:无 -- C. 输出bin: local bt_rf_power_output_bin = cfg:group("rf power bin", BIN_ONLY_CFG["BT_CFG"].rf_power.id, 1, { bluetooth_rf_power, } ); -- D. 显示 local bt_rf_power_group_view = cfg:stGroup("", cfg:hBox { cfg:stLabel(bluetooth_rf_power.name), cfg:ispinView(...
Lua
gl.Uniform1i(loc, unit as GLint); } } )*}; } texture_type_uniform! { impl &Texture<D1, C> = (Sampler1D, USampler1D, ISampler1D); impl &Texture<D2, C> = (Sampler2D, USampler2D, ISampler2D); impl &Texture<D3, C> = (Sampler3D, USampler3D, ISampler3D); impl &Textur...
Rust
: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::...
Rust
Breath.make(1), FL.Potion_Heal_1S .make(3)), FL.Potion_Heal_1D .make(3), ZL_IS); RM.Mixer.addRecipe0(T, 16, 1, FL.array(FL.Dragon_Breath.make(1), FL.Potion_Jump_1S .make(3)), FL.Potion_Jump_1D .make(3), ZL_IS); RM.Mixer.addRecipe0(T, 16, 1, FL.array(FL.Dragon_Breath.make(1), ...
Java
s';", project); createPubsubTableStatement = "CREATE EXTERNAL TABLE taxi_rides (\n" + " event_timestamp TIMESTAMP,\n" + " attributes MAP<VARCHAR, VARCHAR>,\n" + " payload ROW<\n" + " ride_id VARCHAR,\n" + " ...
Java
ponse().isExact()).isTrue(); // } // // /** // * Check the relationships. // */ // @Test // public void testNonLazyLoad() { // try { // final Feed fd1 = feedService.create("K1_12345"); // fd1.setDescription("Junit"); // feedService.save(fd1); // // ...
Java
void writeBoolValue(bool value) { _buffer.write(value); } @override void writeCoreType(String name) { _buffer.write(name); } @override void writeEnumValue(Object value, String name) { _buffer.write(name); } @override void writeGeneralConstantValue(Object value, String name) { _bu...
Dart
struct Tree10Branches : public TreePb { Tree10Branches() { varss.push_back({0, 1, 2, 3}); // 1 varss.push_back({0, 4, 5, 6}); // 2 varss.push_back({0, 7, 8, 9}); // 3 varss.push_back({0, 10, 11, 12}); // 4 varss.push_back({0, 13, 14, 15}); // 5 varss.pus...
C++
nst; /** * @public */ export type ShippingOption = (typeof ShippingOption)[keyof typeof ShippingOption]; /** * @public * @enum */ export const SnowballCapacity = { NO_PREFERENCE: "NoPreference", T100: "T100", T13: "T13", T14: "T14", T240: "T240", T32: "T32", T42: "T42", T50: "T50", T8: "T8", ...
Typescript
eam = scoreboard.getTeam(packetIn.func_149312_c()); } if (packetIn.func_149307_h() == 0 || packetIn.func_149307_h() == 2) { scoreplayerteam.setTeamName(packetIn.func_149306_d()); scoreplayerteam.setNamePrefix(packetIn.func_149311_e()); scoreplayerteam.setNameSuffix(p...
Java
ul> </li> <li style="width:90x;"> <a href='catalogList.aspx?mid=103' target="_blank">&nbsp;师生风采&nbsp;<img src="images/menu2.jpg" border="0" /></a> <ul id="Menu1_mainMenu_ctl07_ul1"> <li><a href="catalogList.aspx?...
HTML
# An example with functions in python # NOTE: good practice = a multiline comment at beginning of a function, # also when the function is simple. # Such a comment is an associated docstring, # which can be used in auto generated documentation. # Also see https://peps.python.org/pep-0257/#one-li...
Python
тьего рендера уничтожает соединение `createConnection('travel')`. Таким образом, приложение отключается от комнаты `'travel'`. #### Поведение, доступное только в режиме разработки {/*development-only-behaviors*/} Когда включён [Strict Mode](/reference/react/StrictMode), React повторно монтирует каждый компонент один ...
Markdown
"users.id AS \"userId\" " + "FROM experiment, users, scene, CoinCombination " + "WHERE experiment.user_id = users.id and scene.id = CoinCombination.scene_id AND " + " Experiment.coin_combination_id = CoinCombination.id " + ...
Typescript
-sand-empty": F6AC, "timer-sand-full": F78B, "timetable": F520, "toaster": F0085, "toaster-off": F01E2, "toaster-oven": FCAF, "toggle-switch": F521, "toggle-switch-off": F522, "toggle-switch-off-outline": FA18, "toggle-switch-outline": FA19, "toilet": F9AA, "toolbox": F9AB, "toolbox-outline": F9...
CSS
cur { low_points.push((x,y,map[x][y].to_string().parse::<i32>().unwrap())); } } } let risk_level: i32 = low_points.iter().map(|(_x,_y,level)| level + 1).sum(); let mut seen: HashMap<(usize, usize),char> = HashMap::new(); let mut basin_points: Vec<i32> = vec!(); ...
Rust
61] = { reload_max = 1645, damage = 35, base = 81060, id = 81061, bullet_ID = { 17061 } } uv0.weapon_property_189[81062] = { reload_max = 1620, damage = 37, base = 81060, id = 81062, bullet_ID = { 17062 } } uv0.weapon_property_189[81063] = { reload_max = 1595, damage = 41, base =...
Lua
site_id" RepeatedScheduleResourceFieldTargetRegionId = "target_region_id" RepeatedScheduleResourceEdgeTimestamps = "timestamps" ) // SPDX-FileCopyrightText: (C) 2025 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v...
Go
have freed them. seen := map[string]bool{} for i := 0; i < nPools; i++ { pool, nw, _, err := a.RequestPool(localAddressSpace, "", "", nil, false) if err != nil { t.Fatal(err) } if _, ok := seen[nw.String()]; ok { t.Fatalf("Network %s was reused before exhausing the pool list", nw.String()) }...
Go
ITELIST+8 RTS FIRE: TST.B FIREFLAG BEQ FIR1 CLR.B FIREFLAG BSR FINDFREESHOT TST.W D1 BMI FIR1 ;NO FREE SHOTS FOUND MOVE.W #1,(A2)+ ;MOVEMENT FACTOR MOVE.W -2(A1),D0 ADD.W #12*160,D0 MOVE.W D0,(A2) ;Y COORD*160 MOVE.W (A1),D0 ADDQ.W #1,D0 ADD.W FIREADDX,D0 NEG.W FIREADDX MOVE.W D0,2(A2) ;...
Assembly
: 0px 30px;">'+r+"</ol>",o.push(e);var i='<div style="background:#0d1117;margin-top: 5px;color: #888;padding:5px 0;border-radius: 5px;">';return i+='<div style="text-align: end;font-size: 12px;">',i+="".concat(t,'<a class="copy-btn" code-data-index="').concat(o.length-1,'" style="cursor: pointer;"> 复制代码 </a>'),i+="</di...
JavaScript
ce-connector.yaml".format( strimzi_path=STRIMZI_PATH ).format(version=STRIMZI_VERSION) ) as file: connector_dict = yaml.full_load(file) connector_dict["metadata"]["name"] = connector connector_dict["metadata"]["labels"]["strimzi.io/cluster"] = cluster connector_...
Python
/* Definition of the generic version of struct statx. Copyright (C) 2018-2024 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the F...
C
using Application.Core.Channel; using Application.Module.Duey.Channel; using Application.Module.Maker.Channel; using Application.Module.PlayerNPC.Channel; using Serilog.Events; using Serilog; using System.Text; using Yitter.IdGenerator; using Application.Shared.Servers; using Application.Utility; using Application.Prot...
C#
Type", checksumType)); } } } public interface DeterministicHashable { /** * A hash code implementation that is stable across different processes/JVMs and only depends on the contents * of the object. */ int deterministicHashCode(); } /** ...
Java
META27:![0-9]+]]) // CHECK1-NEXT: call void @llvm.experimental.noalias.scope.decl(metadata [[META29:![0-9]+]]) // CHECK1-NEXT: store i32 [[TMP2]], ptr [[DOTGLOBAL_TID__ADDR_I]], align 4, !noalias [[META31:![0-9]+]] // CHECK1-NEXT: store ptr [[TMP5]], ptr [[DOTPART_ID__ADDR_I]], align 8, !noalias [[META31]] // ...
C++
ready) ``` own bindings ```coffee class Foo load: -> thisI = this $.ajax "/application", success: (data) -> $('#foo').html(data) $(document).trigger('fooLoaded') $(document).on 'ready fooLoaded', -> foo = new Foo foo.load() ``` ### jQuery $.when().then() and gladual delayed r...
Markdown
toLocaleDateString(lang, { day: "numeric", month: "long", year: "numeric", }) } export const formatReadingTime = (minutes: number, lang: string) => { const roundMinutes = Math.ceil(minutes) switch (lang) { case "es": return `${roundMinutes} min de lectura` case "fr": return `${rou...
Typescript
LIBRADOS_C_API_BASE_DEFAULT(rados_aio_get_version); extern "C" void _rados_aio_release(rados_completion_t c) { tracepoint(librados, rados_aio_release_enter, c); ((librados::AioCompletionImpl*)c)->put(); tracepoint(librados, rados_aio_release_exit); LIBRADOS_C_API_BASE_DEFAULT(rados_aio_release); } extern "C" i...
C++
0], rdi // save arguments for later mov [rsp + locArg1], rsi mov [rsp + locArg2], rdx mov [rsp + locArg3], rcx mov [rsp + locArg4], r8 mov rbx, rdx INLINE_GETTHREAD mov rdx, rbx mov [rsp + locThr...
Assembly
ojdyr // with contributions from Neal Richardson // with contributions from Tim Paine // with contributions from Fabio Pellacini // with contributions from Lénárd Szolnoki // with contributions from Jan Pharago // with contributions from Maya Warrier // with contributions from Taha Khokhar // with contributions from An...
C++
/// Map between entity properties and corresponding column indexes. /// </summary> /// <remarks> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without n...
C#
# -*- coding: utf-8 -*- """ up2upyun ~~~~~~~~ Save uploaded pictures in Upyun. :copyright: (c) 2019 by staugur. :license: BSD 3-Clause, see LICENSE for more details. """ __version__ = "0.2.2" __author__ = "staugur <staugur@saintic.com>" __hookname__ = "up2upyun" __description__ = "将图片保存到又拍云" __st...
Python
- 折扣:循环优惠32%,年付起 - 特点:NVMe硬盘,回程电信CN2 GIA,移动联通AS4837 这些优惠码覆盖了不同需求的套餐,无论是追求性价比的建站用户,还是需要高性能线路的专业用户,都能找到适合的选择。 ## HostDare机房性能测试 想了解HostDare的实际性能?以下是美国洛杉矶数据中心的测试信息: - **测试IP**:173.254.229.114 - **测速文件**:可通过官方提供的100MB测试文件体验下载速度 👉 [HostDare优惠码和2025年促销活动整理(洛杉矶CN2 GIA/CN2 GT/日本软银)](https://bit.ly/hostdare) H...
Markdown
("middleButton-shiftkey") << int(Qt::MiddleButton) << int(Qt::ShiftModifier); QTest::newRow("middleButton-controlkey") << int(Qt::MiddleButton) << int(Qt::ControlModifier); QTest::newRow("middleButton-altkey") << int(Qt::MiddleButton) << int(Qt::AltModifier); QTest::newRow("middleButton-metakey") << int(Qt:...
C++
; font-family: &quot;roboto&quot;; font-size: 17.3333px; vertical-align: baseline; white-space: pre-wrap;">filing a bug</span></a><span style="background-color: white; font-family: &quot;roboto&quot;; font-size: 17.3333px; vertical-align: baseline; white-space: pre-wrap;">. Interested in switching channels? </span><a h...
HTML
nsform.Microsoft.gradient(startColorStr='#435066',EndColorStr='#252c38')"}.theme-7.color{background:#777}.theme-7 .navbar{background:#777;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#777),color-stop(1,#9d9d9d));background:-ms-linear-gradient(bottom,#777,#9d9d9d);background:-moz-linear-gradient(...
CSS
prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0; error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); } catch (ex) { error = ex; } process.env.NODE_ENV !== 'productio...
JavaScript
ourbon'], [82.0, 16.0, 'Corn'], [82.0, 50.0, 'Single Malt'], [82.0, 70.0, 'Single Malt'], [82.0, 100.0, 'Blended'], [82.0, 19.0, 'Bourbon'], [82.0, 17.0, 'Corn'], [82.0, 133.0, 'Rye'], [82.0, 100.0, 'Speyside'], [83.0, 28.0, 'Bourbon'], [83.0, 33.0, 'Single Malt'], [83.0, 246.0, 'Highlands'], [83.0, 42.0, 'Bour...
HTML
WinPos = new Vector2(xloc, yloc); } public override void Update(GameTime gameTime) { if (TerrainEditorView.CurrentEditorMode != EditorMode.TerrainEditor) return; if (!ShowProgressBar) return; base.Update( gameTime ); } protected overrid...
C#
waiting = append(waiting, req) if done == nil { done = make(chan struct{}) go tab.doRefresh(done) } case <-done: for _, ch := range waiting { close(ch) } waiting = nil done = nil case <-tab.closeReq: break loop } } if tab.net != nil { tab.net.close() } if done != nil { <...
Go
, // gets changed by control timer 1, testMixIdleShouldNotStarveFdFd, NULL); ElektraIoIdleOperation * idleOp = elektraIoNewIdleOperation (1, testMixIdleShouldNotStarveFdIdle, NULL); ElektraIoInterface * binding = createBinding (); elektraIoBindingAddFd (binding, fdOp); elektraIoBindingAddTimer (bind...
C
IfNull(completedAt); ProcessedMessage = processedMessage; StartedAt = startedAt; CompletedAt = completedAt; } /// <summary> /// The processed message. /// </summary> public IncomingMessage ProcessedMessage { get; } /// <summary> /// Time when the receive pipeline s...
C#
(1)) .findAllTagContaining(JAVA); assertThat(tagResponses).extracting("name").containsExactly(JAVA, JAVASCRIPT); } @Test @DisplayName("성공, 태그 검색은 대소문자를 구별하지 않는다") void searchTagsWithUpperCaseIncluded() { // given given(tagRepositor...
Java
-content .image-style-align-left:not(.image_resized), .formio-component-content .image-style-align-center:not(.image_resized), .formio-component-content .image-style-align-right:not(.image_resized) { max-width: 50%; } /* ckeditor5-image/theme/imagestyle.css */ .formio-component-content .image-style-side:not(.image_re...
CSS
.png);width:100px;height:45px;background-size:contain;background-repeat:no-repeat;margin-right:16px}.has_instructions.PaymentConnect .money_clip{width:70px;height:39px;margin-bottom:8px}.PaymentConnect .connect{margin-top:8px}.PaymentConnect .stripe_account{color:#fff;text-decoration:underline}.PaymentConnect .title{fo...
CSS
data, test_size=0.2, random_state=42) # # -------------------------------------------------------------- K-means-------------------------------------------------------------- colors = ['red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'brown', 'grey', 'black'] # 產生的資料組數 (10) clusters = 10 # K 值...
Python
" placeholder="eight two five three" /><br /><br /></form> <script type="text/javascript"> function doall03(all1, all2, all3, all4, all5, all6) { window.open('https://www.google.com/search?q=site%3Acraigslist.org+%22' + all1 + all2 + all3 + '%22 OR %22' + all1 + '-' + all2 + '-' + all3 + '%22 OR %22' + all1 + '.' + all...
HTML
, pid, status, code) end nchild = nchild + 1 end pid, status, code = syswait.wait(-1, syswait.WNOHANG) end end) local function handler(signo) if verbose then print('handled', signo) end nsig = nsig + 1 end M.signal(M.SIGUSR1, handler) M.signal(M.SIGUSR2, handler) M.sign...
Lua
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2022 Huawei Technologies Duesseldorf GmbH * * Author: Roberto Sassu <roberto.sassu@huawei.com> */ #include <test_progs.h> #include "test_libbpf_get_fd_by_id_opts.skel.h" void test_libbpf_get_fd_by_id_opts(void) { struct test_libbpf_get_fd_by_id_opts *skel;...
C
tOffset(server: string, offset: number, chainid: string = 'main'): Promise<TezosRPCTypes.TezosBlock> { if (offset <= 0) { return getBlock(server); } const head = await getBlock(server); return performGetRequest(server, `chains/${chainid}/blocks/${Number(head['header']['level']) - offset}`).then...
Typescript
ebkit-overflow-scrolling: touch; -webkit-box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12); box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12); } .mdui-select-open .mdui-sel...
CSS
, y, z+0.2, true, true, true) AttachEntityToEntity(prop, PlayerPedId(), GetPedBoneIndex(PlayerPedId(), 60309), 0.025, 0.08, 0.255, -145.0, 290.0, 0.0, true, true, false, true, 1, true) local packedintothecar = true while packedintothecar do Wait(250) local vehicle = QBCore.Functions.GetClosestVehicle...
Lua
oat(1.0)) Wait(30 * DT) Thread Wait(28 * DT) Call(EnableModel, MODEL_sui1, FALSE) Call(EnableModel, MODEL_sui2, FALSE) EndThread Call(UseSettingsFrom, CAM_DEFAULT, 0, 220, 255) Call(PanToTarget, CAM_DEFAULT, 0, TRUE) Wait(1) Call(ResetCam, CAM_DEFAULT, Float(1.5 / DT)...
C
, oldGlossary = chapterGlossary?.glossary ?: emptyMap(), ) } suspend fun updateChapterTranslation( novelId: String, translatorId: TranslatorId, volumeId: String, chapterId: String, glossaryId: String?, paragraphsZh: List<String>, saku...
Kotlin
local M = {} -- Variables M.debug_text = "" M.frame_num = 1 M.show_fps = false M.window_width = tonumber(sys.get_config("display.width", 1920)) M.window_height = tonumber(sys.get_config("display.height", 1080)) -- Constants local IDENTITY_MAT4 = vmath.matrix4() M.FORWARD = vmath.vector3(0, 0, -1) M.RIGHT = vmath.vec...
Lua
func (s *CreateBatchTradeOrderRequest) SetBatchTradeDetails(v []*CreateBatchTradeOrderRequestBatchTradeDetails) *CreateBatchTradeOrderRequest { s.BatchTradeDetails = v return s } func (s *CreateBatchTradeOrderRequest) SetOutBatchNo(v string) *CreateBatchTradeOrderRequest { s.OutBatchNo = &v return s } func (s *Cr...
Go
Whether the item can be sold self.can_sell = true -- Consumable target mode (ally, party, enemy, enemies, or none) self.target = "ally" -- Where this item can be used (world, battle, all, or none/nil) self.usable_in = "all" -- Item this item will get turned into when consumed self.result_it...
Lua
dTransaction( {to: fundraiser.address, from: accounts[9], value} ); const newDonationsCount = await fundraiser.donationsCount(); assert.equal( 1, newDonationsCount - currentDonationsCount, "donationsCount should increment by 1"); }); }); });; import 'dotenv/c...
JavaScript
-border-color: #e9ecef #e9ecef #dee2e6; --bs-nav-tabs-link-active-color: #495057; --bs-nav-tabs-link-active-bg: #fff; --bs-nav-tabs-link-active-border-color: #dee2e6 #dee2e6 #fff; border-bottom: var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color); } .nav-tabs .nav-link { margin-bottom: calc(...
CSS
_document(config.clone())), ), TestFn::new( "test_get_a_document_not_found", Box::pin(doc_get::test_get_a_document_not_found(config.clone())), ), TestFn::new( "test_upserts_a_document", Box::pin(doc_upsert::test_upserts_a_document(config.cl...
Rust
hubusercontent.com/AppManager-Repo/$repoName/main/apps.json'), ); if (response.statusCode == 200) { return response.body; } else { throw Exception('Failed to fetch apps.json: ${response.statusCode}'); } } catch (e) { throw Exception('Error fetching apps.json: $e'); ...
Dart
", "vg", "vi", "co.vi", "com.vi", "k12.vi", "net.vi", "org.vi", "vn", "com.vn", "net.vn", "org.vn", "edu.vn", "gov.vn", "int.vn", "ac.vn", "biz.vn", "info.vn", "name.vn", "pro.vn", "health.vn", "vu", "com.vu", "edu.vu", "net.vu", "org.vu", "wf", "ws", "com.ws", "net.ws", "org.ws", "gov.ws...
Go
_021E5E64 cmp r0, #2 beq _021E5E6A b _021E5E96 _021E5E64: mov r0, #1 str r0, [r5] b _021E5E96 _021E5E6A: mov r0, #5 str r0, [r5] b _021E5E96 _021E5E70: mov r0, #6 str r0, [sp] mov r0, #1 str r0, [sp, #4] mov r1, #0x19 str r1, [sp, #8] mov r1, #4 add r2, r1, #0 mov r3, #0 bl BeginNormalPaletteFade ad...
Assembly
.reshape(1, -1) J32 = np.sum(coordint2 * DHatPhi3, axis=0).reshape(1, -1) J33 = np.sum(coordint3 * DHatPhi3, axis=0).reshape(1, -1) # 雅可比行列式 DET = (J11 * (J22 * J33 - J32 * J23) - J12 * (J21 * J33 - J23 * J31) + J13 * (J21 * J32 - J22 * J31)) # 雅可比矩阵分量的逆 Jinv11 = (J22 * J33 - J23 * J32) / DET Jinv12 = -(J12 * ...
Python
UMA&#xFF08;&#x975E;&#x7EDF;&#x4E00;&#x5185;&#x5B58;&#x8BBF;&#x95EE;&#xFF09;&#x7684;&#x73AF;&#x5883;&#xFF08;&#x5728;NUMA&#x73AF;&#x5883;&#x4E2D;&#xFF0C;&#x4F7F;&#x7528;<code>numactl</code>&#x547D;&#x4EE4;&#x6765;&#x66FF;&#x4EE3;<code>taskset</code>&#xFF09;</p> </blockquote> <ul> <li>&#x68C0;&#x67E5;&#x8FDB;&#x7A0B;<code...
HTML
/* * SPDX-License-Identifier: GPL-3.0-only * MuseScore-CLA-applies * * MuseScore * Music Composition & Notation * * Copyright (C) 2021 MuseScore BVBA and others * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * publi...
C
buf.toString()); } private IndelInfo checkForIndelAtLocus(SAMRecord read, int refPos) { IndelInfo elem = null; String contigInfo = read.getStringAttribute("YA"); if (contigInfo != null) { // Get assembled contig info. String[] fields = contigInfo.split(":"); int contigPos = Integer.parseInt(field...
Java
ᇝ ㅯ ᇟ ㅰ ᇱ ㆂ ᇲ ㆃ ᬅ ᬆ ᬇ ᬈ ᬉ ᬊ ᬋ ᬌ ᬍ ᬎ ᬑ ᬒ ᬵ ᬆ ᬈ ᬊ ᬌ ᬎ ᬒ ᬻ ᬽ ᭀ ᭁ ᭃ ᬺ ᬻ ᬼ ᬽ ᬾ ᭀ ᬿ ᭁ ᭂ ᭃ ᴂ ᵆ ᴖ ᵔ ᴗ ᵕ ᴜ ᶸ ᴝ ᵙ ᴥ ᵜ ᵻ ᶧ ᶅ ᶪ ᶑ 𐞍 ‐ ‑ – ︲ — ︱ ﹘ ′ ″ ‴ ⁗ ‵ ‶ ‷ ⁄ ¼ ½ ¾ ⅐ ⅑ ⅒ ⅓ ⅔ ⅕ ⅖ ⅗ ⅘ ⅙ ⅚ ⅛ ⅜ ⅝ ⅞ ⅟ ↉ ₩ ₩ ← ↚ ← ↑ ↑ → ↛ → ↓ ↓ ↔ ↮ ⇐ ⇍ ⇒ ⇏ ⇔ ⇎ ∂ 𝛛 𝜕 𝝏 𝞉 𝟃 ∃ ∄ ∇ 𝛁 𝛻 𝜵 𝝯 𝞩 ∈ ∉ ∋ ∌ ∑ ⅀ − ⁻ ₋ ∕ ㎧ ㎨ ㎮ ㎯ ㏆ ㏞ ㏟ ∣ ∤ ∥ ∦ ∫ ∬ ∭ ⨌ ...
JavaScript
def solve(grid): H, W = len(grid), len(grid[0]) bounds = {} for r in range(H): for c in range(W): v = grid[r][c] if v != 0: if v not in bounds: bounds[v] = [r, c, r, c] else: br = bounds[v] ...
Python
0163900 93 E1 00 1C */ stw r31, 0x1c(r1) /* 80167CA4 00163904 93 C1 00 18 */ stw r30, 0x18(r1) /* 80167CA8 00163908 7C 7E 1B 78 */ mr r30, r3 /* 80167CAC 0016390C 93 A1 00 14 */ stw r29, 0x14(r1) /* 80167CB0 00163910 7C 9D 23 78 */ mr r29, r4 /* 80167CB4 00163914 4B FF FD 7D */ bl func_80167A30 /* 80167CB8 001639...
Assembly
] as const) ) .fn(async t => { const cases = [ { input: [bool(false), bool(false)], expected: bool(false) }, { input: [bool(true), bool(false)], expected: bool(true) }, { input: [bool(false), bool(true)], expected: bool(true) }, { input: [bool(true), bool(true)], expected: bool(true) }, ...
Typescript
l].srt) { if (k - l > 1) radix_sort_ha_an2(ab->a + l, ab->a + k); l = k; } } // copy over to _cl_ if (ab->m_a >= (uint64_t)cl->size) { cl->size = ab->m_a; KREALLOC(km, cl->list, cl->size); } for (k = 0; k < ab->n_a; ++k) { k_mer_hit *p = &cl->list[k]; p->readID = ab->a[k].srt >> 33; p->st...
C++
acheSizeL2Bytes: utils.NewErrorValue[uint64](utils.ErrNotCollectable), CacheSizeL3Bytes: utils.NewErrorValue[uint64](utils.ErrNotCollectable), VendorID: utils.NewValue("GenuineIntel"), ModelName: utils.NewValue("Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz"), CPUCores: uti...
Go
preconditioner = ic_prec_type::build().on(this->exec)->generate(this->mtx); preconditioner->apply(b, x); GKO_ASSERT_MTX_NEAR(x, l({3.0, -2.0, 4.0}), this->tol); } TYPED_TEST(Ic, SolvesSingleRhsComplex) { using ic_prec_type = typename TestFixture::ic_prec_type; using Vec = gko::to_complex<ty...
C++
则返回的结果是随机的。 | | `FirstString` | 返回 `FirstRule` 中得第一条规则错误信息。其顺序性只有使用顺序校验规则时有效,否则返回的结果是随机的。 | ## `gerror.Current` 支持 我们可以看到, `gvalid.Error` 实现了 `Current() error` 接口,因此可以通过 `gerror.Current` 方法获取它的第一条错误信息,这在接口校验失败时返回错误信息非常方便。我们来看一个示例: ```go package main import ( "github.com/gogf/gf/v2/errors/gerror" "github.com...
Markdown
(err) end return minified or chunk end end local function generate_wrapper (output_file, entry_script, lua_modules, native_modules, opts) local file = assert(io.open(output_file, 'w')) local buff = {} merger.merge_modules(lua_modules, opts.debug, function (data) push(buff, data) end) push(...
Lua
if w.handle == 0 { x, y, width, height := w.InnerBounds() change() w.SetInnerBounds(x, y, width, height) } else { // We want to keep the inner bounds the same as they were, this way no // controls change their position. First we restore the window, if it is // minimized or maximized the inner size would no...
Go
px solid #E5E5E5; */ } .phone .header:not(.follow-scroll) ul.content-tabs { top: auto; } .header .btn { margin-top: 3px; } .phone .header .btn { margin-top: 0; } .header-content-left { float: left; } .header-content-right { float: right; height: auto; margin-left: auto; } .phone .heade...
CSS
ckgroundImageNode.Width, BackgroundImageNode.Height - HeaderHeight); public Vector2 ContentStartPosition => new(BackgroundImageNode.X, BackgroundImageNode.Y + HeaderHeight); public void SetTitle(string title, string? subtitle = null) => Component->SetTitle(title, subtitle ?? string.Empty); protec...
C#
Eager {}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Eager block buffer kind, which guarantees that buffer position always lies in the range of <code>0..BlockSize</code>.</p> </div></details><h2 id="trait-implementations" cl...
HTML
checkDevice(response as api.Device); }); unittest.test('method--list', () async { final mock = HttpServerMock(); final res = api.AndroidProvisioningPartnerApi(mock).customers.devices; final arg_parent = 'foo'; final arg_pageSize = 'foo'; final arg_pageToken = 'foo'; f...
Dart
tPrimeDevices { return devices .where((device) => device.type == DeviceType.passportPrime) .toList(); } } // SPDX-FileCopyrightText: 2022 Foundation Devices Inc. // // SPDX-License-Identifier: GPL-3.0-or-later import 'dart:async'; import 'package:collection/collection.dart'; import 'package:envoy...
Dart
ZE); assert_eq!(free_list[1].unwrap().affinity, 4); } /// Test that release and allocate works as expected. /// Also verify free memory reporting along the way. #[test] fn ncache_release_allocate() { let mut ncache = get_an_ncache(); ncache.node = 2; // Insert some ...
Rust
guage governing permissions and * limitations under the License. * */ package io.data2viz.timeFormat import kotlinx.datetime.LocalDateTime import kotlinx.datetime.TimeZone import kotlinx.datetime.toInstant import kotlin.test.Test class FormatTest : TestDate() { private fun date(y: Int, mo: Int, d: Int, h: I...
Kotlin
差距日益被人们所认识,以至于大多数公众对他们所认定的行政机构失去了信任。 </p> <p> 毛:就是不讲真话。一个人不讲真话建立不起信任。谁信任你啊?朋友之间也是这样。比如我们三十五年前第一次见面到现在,总没有变嘛,还是没有变嘛,总是以朋友相待嘛。官僚主义是有一点,但是我自己作自我批评嘛。 </p> <p> 斯:你们跟俄国的问题打算解决吗? </p> <p> 毛:俄国的问题总也要解决嘛。世界上各国的问题都总是要解决的呀! </p> <p> 斯:那是。 </p> <p> 毛:总要双方都愿意才行,只一方愿意不行。 </p> <p> 斯:俄国到底要干什么?...
HTML
file csv_filepath = args.csv_file # Check if the file exists if not os.path.exists(csv_filepath): print(f"CSV file not found: {csv_filepath}") return # Read names from the CSV file (or use single name if specified) if args.single: names = [args.single] print...
Python
sel_hiddenPointerStyle = objc.registerName("hiddenPointerStyle"); late final _sel_systemPointerStyle = objc.registerName("systemPointerStyle"); /// UIPointerStyle class UIPointerStyle extends UIHoverStyle implements objc.NSCopying { UIPointerStyle._(ffi.Pointer<objc.ObjCObject> pointer, {bool retain = false, bool re...
Dart
DC \\uCEE8\\uD150\\uD2B8\\uC758 \\uB05D\\uC785\\uB2C8\\uB2E4. \\uC228\\uAE30\\uB824\\uBA74 \\uC2A4\\uD398\\uC774\\uC2A4\\uBC14\\uB97C \\uB204\\uB974\\uC2ED\\uC2DC\\uC624.\nSHELL_TITLE_OUTBOX=\\uB0B4 \\uBC1C\\uC2E0\\uD568\nDetailView_StatusColumnTitle=\\uC0C1\\uD0DC\nIMPERSONAL_WORKFLOW_STARTED=\\uC6CC\\uD06C\\uD50C\\uB...
JavaScript
tmat(C,N,N); /* Compute E = diag(sqrt(eigenvals)) * D; i.e. the rows of E become the rows of D times sqrt(corresponding eigenvalue) */ for (i = 0; i < N; ++i) { CHECK(eigvals[i] > 0, "non-positive eigenvalue"); blasglue_copy(N, D + i*N, 1, E + i*N, 1); blasglue_rscal(N, sqrt(eigvals[i]), E + ...
C
от Доланаара, 3 клыка ночного саблезуба, 3 пера островной совы и 3 мотка паутины чащобного тенетника."; ["name"] = "Просьба Зенна"; }; [489] = { ["objective"] = "Соберите 3 шишки Скверны и отдайте их Зенну Грязному Копыту близ Доланаара."; ["name"] = "Искупление вины"; }; [491] = { ["objecti...
Lua
0) { pu.Desc[0] = (byte)(1 + up);// AC } up = GetUpgrade(6, 15); if (M2Share.RandomNumber.Random(30) == 0) { pu.Desc[1] = (byte)(1 + up); // MAC } up = GetUpgrade(6, 20); if (M2Share.RandomNum...
C#
24 add w20, w20, 1 tbnz w2, #31, .L688 .L617: lsl w1, w20, 24 add x3, x25, 24 cmp w1, w28 mov w0, 0 bhi .L618 ldr w0, [x19, 44] sub w28, w28, w1 sub w20, w0, w20 lsl w0, w27, w5 .L618: orr w4, w4, w0 ldrb w0, [x3, w20, uxtw] sub w5, w5, #1 lsl w28, w28, w0 sub w2, w2, w0 lsl w20, w20, w0 cmn w5, #1 s...
Assembly
iled, wanted %d got %d", wants, got) } } //go:noinline func arithRshuConst_ssa() uint64 { y := uint64(0x8000000000000001) z := uint64(1) return uint64(y >> z) } //go:noinline func arithRshConst_ssa() int64 { y := int64(-0x8000000000000000) z := uint64(1) return int64(y >> z) } //go:noinline func arithConstShi...
Go
h as this one). // This routine forces the compiler (at least gcc) to push it anyway. StacktracePowerPCDummyFunction(); // The LR save area is used by the callee, so the top entry is bogus. skip_count++; int n = 0; while (sp && n < max_depth) { if (skip_count > 0) { skip_count--; } else { ...
C